Skip to main content

round_to

Function round_to 

Source
pub fn round_to(number: f64, prec_opt: Option<u8>) -> f64
Expand description

Round $number to $prec decimals (0…6) attempting to do so portably.