BloombergLP::bdldfp::DecimalUtil::lrint

lrint overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for lrint.

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

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

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

Same as the overload taking Decimal32.

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

Return Value

integer nearest to x as a long int

Parameters

NameDescription
xvalue to round to nearest long int