pub enum RMode {
Nearest,
PlusInfinity,
MinusInfinity,
Zero,
}
Expand description
Rounding mode
Variants§
Nearest
Round to Nearest (RN) mode. This is the reset value.
PlusInfinity
Round towards Plus Infinity (RP) mode.
MinusInfinity
Round towards Minus Infinity (RM) mode.
Zero
Round towards Zero (RZ) mode.
Implementations§
source§impl RMode
impl RMode
sourcepub fn is_nearest(self) -> bool
pub fn is_nearest(self) -> bool
Is Nearest the current rounding mode?
sourcepub fn is_plus_infinity(self) -> bool
pub fn is_plus_infinity(self) -> bool
Is Plus Infinity the current rounding mode?
sourcepub fn is_minus_infinity(self) -> bool
pub fn is_minus_infinity(self) -> bool
Is Minus Infinity the current rounding mode?