Package cdm.base.math
Enum RoundingModeEnum
- All Implemented Interfaces:
Serializable,Comparable<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 Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RoundingModeEnumfromDisplayName(String name) toString()static RoundingModeEnumReturns the enum constant of this type with the specified name.static RoundingModeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DOWN
A number will be rounded down to the specified nearest number. For example, 529 rounded down to the nearest 10 is 520. -
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
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
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 nameNullPointerException- if the argument is null
-
fromDisplayName
-
toString
- Overrides:
toStringin classEnum<RoundingModeEnum>
-
toDisplayString
-