DB2RoundingMode Enumeration
On this page
Specifies the rounding mode to use when creating a
DB2DecimalFloat structure from a string using the
DB2DecimalFloat.Parse method.
Syntax
Members
| Member | Description |
| Ceiling | Round toward positive infinity. If all of the discarded digits are zero or if the sign is negative, the result is unchanged. Otherwise, the result coefficient should be incremented by 1 (rounded up). |
| Down | Round toward 0 (truncation). The discarded digits are ignored. |
| Floor | Round toward negative infinity. If all of the discarded digits are zero or if the sign is positive, the result is unchanged. Otherwise, the sign is negative and the result coefficient should be incremented by 1 (rounded up). |
| HalfEven | Round to nearest; if equidistant, round down. If the discarded digits represent greater than half (0.5) of the value of a one in the next left position, then the result coefficient should be incremented by 1 (rounded up). Otherwise (if the discarded digits are 0.5 or less), the discarded digits are ignored. |
| HalfUp | Round to nearest; if equidistant, round up. If the discarded digits represent greater than or equal to half (0.5) of the value of a one in the next left position then the result coefficient should be incremented by 1 (rounded up). Otherwise, the discarded digits are ignored. |
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
Devart.Data.DB2.DB2Types.DB2RoundingMode
See Also