Std.Math.signum
1 declaration
fn
signum: T -> T where T: Ord + Zero + One + SubThis is a callable function.
What it does
The sign of a value: -1, 0, or 1, in the value's own type.
An unsigned type never answers -1, because it has no such value.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
