Package org.joml

Class RoundingMode

java.lang.Object
org.joml.RoundingMode

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

    • TRUNCATE

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

      public static final int CEILING
      Round towards positive infinity.
      See Also:
    • FLOOR

      public static final int FLOOR
      Round towards negative infinity.
      See Also:
    • 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:
    • HALF_DOWN

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

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