round overloads
Synopses
Declared in <bdldfp_decimalutil.h>
Same as the related overload above for round.
static
Decimal128
round(Decimal128 x);
Return the integral value nearest to the specified x.
Same as the related overload above for round.
Same as the related overload above for round.
static
Decimal128
round(
Decimal128 x,
unsigned int precision);
Return x rounded to the specified number of decimal places.
Same as the related overload above for round.
Return Value
-
integral value nearest to
x -
xrounded to the specified number of decimal places
Parameters
Name |
Description |
x |
value to round to nearest integral decimal |
precision |
number of decimal places to round to |
Created with MrDocs