llrint(3M)llrint(3M)NAMEllrint(), llrintf(), llrintl(), llrintw(), llrintq() - round to nearest
long long functions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
rounds its argument to the nearest integral value, rounding according
to the current rounding direction.
is equivalent to except that it rounds to instead of
Integrity Server Only
is a version of it takes a argument.
is a version of it takes a argument.
is an version of it takes an argument.
is equivalent to on HP-UX systems.
USAGE
To use these functions, compile either with the default option or with
the and options.
To use (for Integrity servers) or compile also with the option.
Make sure your program includes Link in the math library by specifying
on the compiler or linker command line.
For more information, see the at the following site:
RETURN VALUE
If the rounded value is outside the range of the numeric result is the
maximum or minimum value and the invalid floating-point exception is
raised. On Integrity servers, if the rounded value is outside the
range of the numeric result is the minimum value.
When raises no other floating-point exception and the result differs
from the argument, the function raises the inexact floating-point
exception.
ERRORS
No errors are defined.
SEE ALSOceil(3M), floor(3M), fabs(3M), fmod(3M), fegetround(3M), fes‐
etround(3M), llround(3M), lrint(3M), lround(3M), rint(3M), round(3M),
trunc(3M), math(5), fenv(5).
STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arith‐
metic'')
llrint(3M)