Enum rust_fixed_point_decimal::RoundingMode [−][src]
pub enum RoundingMode {
Round05Up,
RoundCeiling,
RoundDown,
RoundFloor,
RoundHalfDown,
RoundHalfEven,
RoundHalfUp,
RoundUp,
}Expand description
Enum representiong the different methods used when rounding a Decimal
value.
Variants
Round away from zero if last digit after rounding towards zero would have been 0 or 5; otherwise round towards zero.
Round towards Infinity.
Round towards zero.
Round towards -Infinity.
Round to nearest with ties going towards zero.
Round to nearest with ties going to nearest even integer.
Round to nearest with ties going away from zero.
Round away from zero.
Implementations
Sets the default RoundingMode for the current thread.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RoundingMode
impl Send for RoundingMode
impl Sync for RoundingMode
impl Unpin for RoundingMode
impl UnwindSafe for RoundingMode
Blanket Implementations
Mutably borrows from an owned value. Read more