Interface
Number
interface Number
Module: System
Assembly: System.Runtime.dll
Source file: Number.rvn
Inherits: AdditionOperators, ComparableTo<Self>, DivisionOperators, MultiplyOperators, SubtractionOperators
Basic arithmetic and ordering for numeric values. Parsing is a separate capability.
Implementing types
Documented types in this API reference. Indirect relationships are marked.
Properties
2 items
Static member:
One: Self
The multiplicative identity.
Defined by Number.One · Required implementation (no default).
Static member:
Zero: Self
The additive identity.
Defined by Number.Zero · Required implementation (no default).
Methods
1 item
CompareTo(other: Self) -> int
Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than.
Inherited from ComparableTo<Self>.CompareTo · Defined by ComparableTo<Self>.CompareTo · Required implementation (no default).
Operators
4 items
Static member:
operator +(left: Self, right: Self) -> Self
Development: Adds two values.
Defined by Number.op_Addition · Required implementation (no default).
Static member:
operator /(left: Self, right: Self) -> Self
Development: Divides left by right.
Defined by Number.op_Division · Required implementation (no default).
Static member:
operator *(left: Self, right: Self) -> Self
Development: Multiplies two values.
Defined by Number.op_Multiply · Required implementation (no default).
Static member:
operator -(left: Self, right: Self) -> Self
Development: Subtracts right from left.
Defined by Number.op_Subtraction · Required implementation (no default).