pub fn truncate_float(float: f64, decimals: u32, round_up: bool) -> f64