pretty-bytes-typed 0.2.0

Strongly-typed prettified byte values
Documentation
1
2
3
4
pub fn round_float(num: f64, round_places: u8) -> f64 {
    let exponent = 10_f64.powi(round_places.into());
    (num * exponent).round() / exponent
}