Function num_traits::sign::signum [] [src]

pub fn signum<T>(value: T) -> T where
    T: Signed

Returns the sign of the number.

For f32 and f64:

For signed integers: