Numeric
Index
Interfaces
Add
Type parameters
- Left
- Right = Left
- Output = Left
+
CheckedAdd
Type parameters
- Left
- Right = Left
- Output = Left
+?
Addition operator that returns
Noneinstead of wrapping around on overflow.
CheckedDivide
Type parameters
- Base
- Divider = Base
- Output = Base
/?
Division operator
CheckedMultiply
Type parameters
- Base
- Multiplier = Base
- Output = Base
*?
Multiplication operator that returns
Noneinstead of wrapping around on overflow.
CheckedPower
Type parameters
- Left
- Right = Left
- Output = Left
**?
Power operator that returns
Noneinstead of wrapping around on overflow.
CheckedRemainder
Type parameters
- Base
- Divider = Base
- Output = Base
%?
Remainder operator
CheckedSubtract
Type parameters
- Left
- Right = Left
- Output = Left
-?
Subtraction operator that returns
Noneinstead of wrapping around on overflow.
Divide
Type parameters
- Base
- Divider = Base
- Output = Base
/
Division operator
Integral
Integral type
Type parameters
- T
constructor
inherited-
Subtraction operator
inherited*
Multiplication operator
inherited/
Division operator
/%
Quotient/Modulo operator
inherited%
Remainder operator
inherited+
Addition operator
inheritedabs
Absolute value. It should satisfy
Numeric['*'](Numeric.abs(x), Numeric.sign(x)) == x
inheritedasInt
Converts the given value to a Int.
inheritedfromInt
inheritedisNegative
Returns true if the number is negative and false if the number is zero or positive.
inheritedisOne
Returns true if self is equal to the multiplicative identity.
inheritedisPositive
Returns true if the number is positive and false if the number is zero or negative.
inheritedisZero
Returns true if self is equal to the additive identity.
inheritednegate
Negates the given value.
inheritedone
Returns the additive identity element of
T, 0.
inheritedsign
Sign of a number. It should satisfy
TSigned['*'](TSigned.abs(x), TSigned.sign(x)) == x
inheritedzero
Returns the additive identity element of
T, 0.
IntegralParameters
Type parameters
- T
inheritedcompare
optionalinherited-
Subtraction operator
inherited*
Multiplication operator
inherited/
Division operator
inherited%
Remainder operator
inherited+
Addition operator
optionalinheritedabs
Absolute value. It should satisfy
Numeric['*'](Numeric.abs(x), Numeric.sign(x)) == x
inheritedasInt
Converts the given value to a Int.
inheritedfromInt
optionalinheritedisNegative
Returns true if the number is negative and false if the number is zero or positive.
optionalinheritedisOne
Returns true if self is equal to the multiplicative identity.
optionalinheritedisPositive
Returns true if the number is positive and false if the number is zero or negative.
optionalinheritedisZero
Returns true if self is equal to the additive identity.
optionalinheritednegate
Negates the given value.
optionalinheritedone
Returns the additive identity element of
T, 0.
optionalinheritedsign
Sign of a number. It should satisfy
TSigned['*'](TSigned.abs(x), TSigned.sign(x)) == x
optionalinheritedzero
Returns the additive identity element of
T, 0.
Multiply
Type parameters
- Left
- Right = Left
- Output = Left
*
Multiplication operator
Negate
Type parameters
- Self
- Output = Self
negate
Negates the given value.
Numeric
Type parameters
- T
constructor
inherited-
Subtraction operator
inherited*
Multiplication operator
inherited+
Addition operator
inheritedabs
Absolute value. It should satisfy
Numeric['*'](Numeric.abs(x), Numeric.sign(x)) == x
inheritedasInt
Converts the given value to a Int.
fromInt
inheritedisNegative
Returns true if the number is negative and false if the number is zero or positive.
inheritedisOne
Returns true if self is equal to the multiplicative identity.
inheritedisPositive
Returns true if the number is positive and false if the number is zero or negative.
inheritedisZero
Returns true if self is equal to the additive identity.
inheritednegate
Negates the given value.
inheritedone
Returns the additive identity element of
T, 0.
inheritedsign
Sign of a number. It should satisfy
TSigned['*'](TSigned.abs(x), TSigned.sign(x)) == x
inheritedzero
Returns the additive identity element of
T, 0.
NumericParameters
Type parameters
- T
inheritedcompare
optionalinherited-
Subtraction operator
inherited*
Multiplication operator
inherited+
Addition operator
optionalinheritedabs
Absolute value. It should satisfy
Numeric['*'](Numeric.abs(x), Numeric.sign(x)) == x
inheritedasInt
Converts the given value to a Int.
inheritedfromInt
optionalinheritedisNegative
Returns true if the number is negative and false if the number is zero or positive.
optionalinheritedisOne
Returns true if self is equal to the multiplicative identity.
optionalinheritedisPositive
Returns true if the number is positive and false if the number is zero or negative.
optionalinheritedisZero
Returns true if self is equal to the additive identity.
optionalinheritednegate
Negates the given value.
optionalinheritedone
Returns the additive identity element of
T, 0.
optionalinheritedsign
Sign of a number. It should satisfy
TSigned['*'](TSigned.abs(x), TSigned.sign(x)) == x
optionalinheritedzero
Returns the additive identity element of
T, 0.
One
Type parameters
- T
isOne
Returns true if self is equal to the multiplicative identity.
one
Returns the additive identity element of
T, 0.
Power
Type parameters
- Left
- Right = Left
- Output = Left
**
Power operator
Remainder
Type parameters
- Base
- Divider = Base
- Output = Base
%
Remainder operator
Signed
Type parameters
- T
abs
Absolute value. It should satisfy
Numeric['*'](Numeric.abs(x), Numeric.sign(x)) == x
isNegative
Returns true if the number is negative and false if the number is zero or positive.
isPositive
Returns true if the number is positive and false if the number is zero or negative.
sign
Sign of a number. It should satisfy
TSigned['*'](TSigned.abs(x), TSigned.sign(x)) == x
Subtract
Type parameters
- Left
- Right = Left
- Output = Left
-
Subtraction operator
Zero
Type parameters
- T
isZero
Returns true if self is equal to the additive identity.
zero
Returns the additive identity element of
T, 0.
Addition operator