small_integer

Function small_integer 

Source
fn small_integer(value: f64) -> i32
Expand description

value rounded towards zero, for |value| < 2^31 (larger magnitudes saturate). Callers use it on validated degrees and small shifts; unlike f64::floor it needs no library call.