num
0.4.3
Module sign
Traits
Functions
In num::
traits
Module
num
::
traits
::
sign
Copy item path
source
·
[
−
]
Traits
§
Signed
Useful functions for signed numbers (i.e. numbers that can be negative).
Unsigned
A trait for values which cannot be negative
Functions
§
abs
Computes the absolute value.
abs_sub
The positive difference of two numbers.
signum
Returns the sign of the number.