math::round
pub fn ceil(value: f64, scale: u8) -> f64
Round up.
Round value up to scale number of decimal digits.
value
scale
use math::round; let rounded = round::ceil(3.14159, 3); assert_eq!(rounded, 3.142);