Return the integer nearest to x using the current rounding mode.
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.
integer nearest to x as a long long int
| Name | Description |
|---|---|
| x | value to round to nearest long long |