Package org.joml

Class RoundingMode



  • public class RoundingMode
    extends Object
    Rounding modes.
    Author:
    Kai Burjack
    • Field Detail

      • TRUNCATE

        public static final int TRUNCATE
        Discards the fractional part.
        See Also:
        Constant Field Values
      • CEILING

        public static final int CEILING
        Round towards positive infinity.
        See Also:
        Constant Field Values
      • HALF_EVEN

        public static final int HALF_EVEN
        Round towards the nearest neighbor. If both neighbors are equidistant, round towards the even neighbor.
        See Also:
        Constant Field Values
      • HALF_DOWN

        public static final int HALF_DOWN
        Round towards the nearest neighbor. If both neighbors are equidistant, round down.
        See Also:
        Constant Field Values
      • HALF_UP

        public static final int HALF_UP
        Round towards the nearest neighbor. If both neighbors are equidistant, round up.
        See Also:
        Constant Field Values