Package org.joml

Class RoundingMode


  • public class RoundingMode
    extends java.lang.Object
    Rounding modes.
    Author:
    Kai Burjack
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CEILING
      Round towards positive infinity.
      static int FLOOR
      Round towards negative infinity.
      static int HALF_DOWN
      Round towards the nearest neighbor.
      static int HALF_EVEN
      Round towards the nearest neighbor.
      static int HALF_UP
      Round towards the nearest neighbor.
      static int TRUNCATE
      Discards the fractional part.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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