BloombergLP::bdldfp::DecimalUtil::lround

lround overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the overload taking Decimal64.

static
long
lround(Decimal128 x);
» more...

Return the integral value nearest to x as a long int.

static
long
lround(Decimal32 x);
» more...

Same as the related overload above for lround.

static
long
lround(Decimal64 x);
» more...

Return Value

integral value nearest to x as a long int

Parameters

NameDescription
xvalue to round to nearest long int