BloombergLP::bdldfp::DecimalUtil::lround

Same as the overload taking Decimal64.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
long
lround(Decimal128 x);

Return Value

integral value nearest to x as a long int

Parameters

NameDescription
xvalue to round to nearest long int