Function snappedi
pub fn snappedi(x: f64, step: i64) -> i64Expand description
Returns the multiple of step that is the closest to x.
A type-safe version of [method snapped], returning an int.
snappedi(53, 16) # Returns 48
snappedi(4096, 100) # Returns 4100