Enum: RoundingDirectionEnum
The enumerated values to specify the rounding direction and precision to be used in the rounding of a number. Used by function cdm.base.math.RoundToPrecision.
URI: common_domain_model:RoundingDirectionEnum
Permissible Values
| Value | Meaning | Description |
|---|---|---|
| Up | None | A fractional number will be rounded up to the specified number of decimal pla... |
| Down | None | A fractional number will be rounded down to the specified number of decimal p... |
| Nearest | None | A fractional number will be rounded either up or down to the specified number... |
Slots
| Name | Description |
|---|---|
| roundingDirection | The direction in which rounding is performed (e |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/common-domain-model
LinkML Source
name: RoundingDirectionEnum
description: The enumerated values to specify the rounding direction and precision
to be used in the rounding of a number. Used by function cdm.base.math.RoundToPrecision.
from_schema: https://w3id.org/lmodel/common-domain-model
rank: 1000
permissible_values:
Up:
text: Up
description: A fractional number will be rounded up to the specified number of
decimal places (the precision). For example, 5.21 and 5.25 rounded up to 1 decimal
place are 5.3 and 5.3 respectively.
Down:
text: Down
description: A fractional number will be rounded down to the specified number
of decimal places (the precision). For example, 5.29 and 5.25 rounded down to
1 decimal place are 5.2 and 5.2 respectively.
Nearest:
text: Nearest
description: A fractional number will be rounded either up or down to the specified
number of decimal places (the precision) depending on its value. For example,
5.24 would be rounded down to 5.2 and 5.25 would be rounded up to 5.3 if a precision
of 1 decimal place were specified.