NumberConversion
Index
Interfaces
Module
Type parameters
- T
readonlymaxValue
readonlyminValue
Minimum value for this type
!=
"Not equal to" operator
%
Remainder operator
*
Multiplication operator
**
Power operator
+
Addition operator
-
Subtraction operator
<
"Less than" operator
<=
"Less than or equal to" operator
==
"Equal to" operator
>
"Greater than" operator
>=
"Greater than or equal to" operator
abs
Absolute value. It should satisfy
Numeric['*'](Numeric.abs(x), Numeric.sign(x)) == x
clamp
Clamp value between minValue and maxValue
compare
Return an Ordering that represents comparison result
equals
Alias to '=='
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.
isZero
Returns true if self is equal to the additive identity.
max
"maximum" operator
min
"minimum" operator
negate
Negates the given value.
sign
Sign of a number. It should satisfy
TSigned['*'](TSigned.abs(x), TSigned.sign(x)) == x
zero
Returns the additive identity element of
T, 0.
Functions
Add
Bounded
Creates a Bounded instance for a type T that can be converted to and from Int.
Maximum value for this type