round overloads
Synopses
Declared in <bdldfp_decimalimputil.h>
Return x rounded to the nearest integral value.
static
DecimalImpUtil::ValueType128
round(ValueType128 x);
Return x rounded to the nearest integral value.
static
DecimalImpUtil::ValueType32
round(ValueType32 x);
Return x rounded to the nearest integral value.
static
DecimalImpUtil::ValueType64
round(ValueType64 x);
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
-
xrounded to the nearest integral value -
xrounded to the specifiedprecision
Parameters
Name |
Description |
x |
value to round |
precision |
number of digits after the decimal point |
Created with MrDocs