round overloads
Declared in <bdldfp_decimalimputil.h>
Return x rounded to the nearest integral value.
static
DecimalImpUtil::ValueType128
round(ValueType128 x);
» more...
Return the integral value nearest to the specified x. Round halfway cases away from zero, regardless of the current decimal floating point rounding mode.
static
DecimalImpUtil::ValueType32
round(ValueType32 x);
» more...
Return x rounded to the nearest integral value.
static
DecimalImpUtil::ValueType64
round(ValueType64 x);
» more...
Round the specified x to the specified precision.
static
ValueType128
round(
ValueType128 x,
unsigned int precision);
» more...
Return the specified x value rounded to the specified precision. Round halfway cases away from zero, regardless of the current decimal floating point rounding mode. If x is integral, positive zero, negative zero, NaN, or infinity then return x itself.
static
ValueType32
round(
ValueType32 x,
unsigned int precision);
» more...
Round the specified x to the specified precision.
static
ValueType64
round(
ValueType64 x,
unsigned int precision);
» more...