HydraExpress™ C++ 2025.2 |
HydraExpress™ C++ API Reference Guide |
Provides enumerations used in the rwsf::Decimal class. More...
#include <rwsf/core/DecimalBase.h>
Public Types | |
| enum | RoundingMethod { PLAIN , UP , DOWN , BANKERS , TRUNCATE } |
This class provides enumerations used in the rwsf::Decimal class.
Sets the rounding method for the rwsf::Decimal::round() function. For all descriptions, the number to be rounded is split into the integer part (i.e., before decimal point) I and the fractional part (i.e., after decimal point) F.
| Enumerator | |
|---|---|
| PLAIN | If F < 0.5, round down to I. If F >= 0.5, round up to I + 1. |
| UP | Round up to I + 1. |
| DOWN | Round down to I. |
| BANKERS | If F < 0.5, round down to I. If F > 0.5, round up to I + 1. If F = 0.5, and I is |
| TRUNCATE | Round down to I (same as DOWN). |
|
Copyright © 2026 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |