fn small_integer(value: f64) -> i32
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.
value
|value| < 2^31
f64::floor