round overloads

Synopses

Declared in <bdldfp_decimalimputil.h>

Return x rounded to the nearest integral value.

Return x rounded to the nearest integral value.

Return x rounded to the nearest integral value.

Return x rounded to the specified precision.

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

Return x rounded to the specified precision.

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

Return x rounded to the specified precision.

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

Return Value

  • x rounded to the nearest integral value

  • x rounded to the specified precision

Parameters

Name

Description

x

value to round

precision

number of digits after the decimal point

Created with MrDocs