[#BloombergLP-bdldfp-DecimalUtil-lrint-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::lrint :relfileprefix: ../../../ :mrdocs: Return the integer nearest to `x` using the current rounding mode. == Synopsis Declared in `<bdldfp_decimalutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static long lrint(xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] x); ---- == Return Value integer nearest to `x` as a `long int` == Parameters [cols="1,4"] |=== | Name| Description | *x* | value to round to nearest long int |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#