BloombergLP::bdldfp::DecimalUtil::lrint

Return the integer nearest to x using the current rounding mode.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
long
lrint(Decimal32 x);

Return Value

integer nearest to x as a long int

Parameters

NameDescription
xvalue to round to nearest long int