Trait traffloat_types::units::RoundedUnit[][src]

pub trait RoundedUnit {
    fn round(self, precision: i32) -> Self;
}
Expand description

A unit that can be rounded off.

Required methods

Round off the unit.

The precision is the number of decimal places. A negative precision means the number of zeros.

Implementors