Function munum::scalar::neg

source · []
pub fn neg<T: Num>() -> T
Expand description

Returns negative one of type T.

Examples

assert_eq!(munum::scalar::neg::<f32>(), -1.);