Function smartnoise_runtime::utilities::get_closest_multiple_of_lambda[][src]

pub fn get_closest_multiple_of_lambda(x: f64, m: i16) -> Result<f64>

Finds the closest number to x that is a multiple of Lambda.

Arguments

Returns

Closest multiple of Lambda to x.