round overloads

Synopses

Declared in <bdldfp_decimalimputil.h>

Return x rounded to the nearest integral value.

Return the integral value nearest to the specified x. Round halfway cases away from zero, regardless of the current decimal floating point rounding mode.

Return x rounded to the nearest integral value.

Round the specified x to the specified precision.

static
ValueType128
round(
    ValueType128 x,
    unsigned int precision);

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);

Round the specified x to the specified precision.

static
ValueType64
round(
    ValueType64 x,
    unsigned int precision);

Created with MrDocs