NEARBYINT(3)

NAME
1.43 `nearbyint', `nearbyintf'-round to integer

SYNOPSIS
     #include <math.h>
     double nearbyint(double X);
     float nearbyintf(float X);

DESCRIPTION
The `nearbyint' functions round their argument to an integer value in floating-point format, using the current rounding direction and (supposedly) without raising the "inexact" floating-point exception. See the `rint' functions for the same function with the "inexact" floating-point exception being raised when appropriate. *Bugs*
Newlib does not support the floating-point exception model, so that the floating-point exception control is not present and thereby what may be seen will be compiler and hardware dependent in this regard. The Newlib `nearbyint' functions are identical to the `rint' functions with respect to the floating-point exception behavior, and will cause the "inexact" exception to be raised for most targets.

RETURNS
X rounded to an integral value, using the current rounding direction.

PORTABILITY
ANSI C, POSIX *See Also*
`rint', `round'

SEE ALSO
nearbyint is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.