Numerical value type-class
type | A | The type for which the number operations are defined. |
method A divide <NUM, A> (A x, A y) Source #
where
NUM : struct, Num<A>
Divide two numbers
param | x | left hand side of the division operation |
param | y | right hand side of the division operation |
returns | x / y |
method A abs <NUM, A> (A x) Source #
where
NUM : struct, Num<A>
Find the absolute value of a number
param | x | The value to find the absolute value of |
returns | The non-negative absolute value of x |
method A signum <NUM, A> (A x) Source #
where
NUM : struct, Num<A>
Find the sign of x
param | x | The value to find the sign of |
returns | -1, 0, or +1 |
method A fromInteger <NUM, A> (int x) Source #
where
NUM : struct, Num<A>
method A fromDecimal <NUM, A> (decimal x) Source #
where
NUM : struct, Num<A>
method A fromDouble <NUM, A> (double x) Source #
where
NUM : struct, Num<A>