Skip to main content

get_sign

Function get_sign 

Source
pub fn get_sign<T>(val: &T) -> i32
where T: Num + PartialOrd,
Expand description

Get the sign of a value: -1, 0, or 1 Direct port from clipper.core.h line 996