RoundingModeEnum
Enum CDM 7.2.0The enumerated values to specify the rounding direction when rounding of a number to nearest. Used by function cdm.base.math.RoundToNearest.
Values 2
Namespace cdm.base.math
Values
2 permitted values.
| Value | Description |
|---|---|
| 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. |
Referenced by
1 type holds a RoundingModeEnum as an attribute.
Functions
Model functions that produce or consume this type. These are the CDM's own behaviour — the logic a correct implementation has to match.
| Function | Role | Description |
|---|---|---|
| RoundToNearest | takes | Round a number to the supplied nearest, using the supplied rounding mode. |
Open RoundingModeEnum in the Model Browser
Walk the tree and the reference graph interactively, and switch releases to see how the enumeration has changed. Free, no signup.