round_to

Function round_to 

Source
pub fn round_to<T>(val: T, decimals: usize) -> T
where T: Float,
Expand description

Round the given value to the given number of decimal places.