Return the integer nearest to x using the current rounding mode.
Synopsis
Declared in <bdldfp_decimalutil.h>
static
long long
llrint(Decimal32 x);
Description
Return an integer value nearest to the specified x. Round x using the current rounding mode. If x is +/‐infnity, NaN (either signaling or quiet) or the rounded value is outside the range of the return type, store the value of the macro EDOM into errno and return implementation‐defined value.
Return Value
integer nearest to x as a long long int
Parameters
Name |
Description |
x |
value to round to nearest long long |
Created with MrDocs