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