pub fn round_to<T>(val: T, decimals: usize) -> Twhere T: Float,
Round the given value to the given number of decimal places.