pub fn round_to(number: f64, prec_opt: Option<u8>) -> f64
Round $number to $prec decimals (0…6) attempting to do so portably.