Package cdm.base.math

Enum RoundingModeEnum

java.lang.Object
java.lang.Enum<RoundingModeEnum>
cdm.base.math.RoundingModeEnum
All Implemented Interfaces:
Serializable, Comparable<RoundingModeEnum>

@RosettaEnum("RoundingModeEnum") public enum RoundingModeEnum extends Enum<RoundingModeEnum>
The enumerated values to specify the rounding direction when rounding of a number to nearest. Used by function cdm.base.math.RoundToNearest.
Version:
5.30.0
  • Enum Constant Details

    • DOWN

      @RosettaEnumValue("Down") public static final RoundingModeEnum DOWN
      A number will be rounded down to the specified nearest number. For example, 529 rounded down to the nearest 10 is 520.
    • UP

      @RosettaEnumValue("Up") public static final RoundingModeEnum UP
      A number will be rounded up to the specified nearest number. For example, 521 rounded up to the nearest 10 is 530.
  • Method Details

    • values

      public static RoundingModeEnum[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RoundingModeEnum valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromDisplayName

      public static RoundingModeEnum fromDisplayName(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RoundingModeEnum>
    • toDisplayString

      public String toDisplayString()