Skip to main content

quantize

Function quantize 

Source
pub fn quantize(value: f64, step: f64) -> f64
Expand description

value rounded to the nearest multiple of step, as a logger writes it; step 0 keeps it.