nearbyint man page on MacOSX

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
MacOSX logo
[printable version]

NEARBYINT(3)		 BSD Library Functions Manual		  NEARBYINT(3)

NAME
     nearbyint — round to integral value in floating-point format

SYNOPSIS
     #include <math.h>

     double
     nearbyint(double x);

     long double
     nearbyintl(long double x);

     float
     nearbyintf(float x);

DESCRIPTION
     The nearbyint() functions return the integral value (represented as a
     double precision number) nearest to x according to the prevailing round‐
     ing mode.

     nearbyint() is the same as rint(), except that nearbyint is guaranteed
     never to set floating point flags or trigger floating point exceptions
     (which are disabled by default).  rint() is typically much more perfor‐
     mant than nearbyint() if the application does not depend on flags being
     preserved.

SPECIAL VALUES
     nearbyint(�0) returns �0 for all rounding modes.

     nearbyint(�infinity) returns �infinity for all rounding modes.

SEE ALSO
     rint(3) ceil(3) floor(3) round(3) trunc(3) lround(3) lrint(3) llround(3)
     llrint(3) math(3)

STANDARDS
     The nearbyint() functions conform to ISO/IEC 9899:2011.

BSD				 July 01, 2008				   BSD
[top]

List of man pages available for MacOSX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net