pub fn quantize(value: u16, step: u16, rounding: Rounding) -> u16
Snap value to the nearest multiple of step according to rounding.
value
step
rounding
Panics if step is 0 (division by zero).
0