Enum Round

Source
pub enum Round {
    Nearest = 0,
    Negative = 1,
    Positive = 2,
    Zero = 3,
}
Expand description

IEEE 754 rounding mode, excluding the optional roundTiesToAway version of nearest.

Integer representation comes from what CORE-MATH uses for indexing.

Variants§

§

Nearest = 0

IEEE 754 nearest, roundTiesToEven.

§

Negative = 1

IEEE 754 roundTowardNegative.

§

Positive = 2

IEEE 754 roundTowardPositive.

§

Zero = 3

IEEE 754 roundTowardZero.