pub fn round_to_decimals(value: f64, decimals: u8) -> f64Expand description
Rounds an f64 to the requested number of decimal places.
Halfway values follow f64::round and therefore round away from zero.
pub fn round_to_decimals(value: f64, decimals: u8) -> f64Rounds an f64 to the requested number of decimal places.
Halfway values follow f64::round and therefore round away from zero.