pub trait RoundFloat {
// Required method
fn round_float(self, decimal: i32) -> Self
where Self: Sized;
}
Expand description
Trait for rounding floating-point numbers to a specified number of decimal places.
pub trait RoundFloat {
// Required method
fn round_float(self, decimal: i32) -> Self
where Self: Sized;
}
Trait for rounding floating-point numbers to a specified number of decimal places.