Query: nearbyint
OS: osx
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NEARBYINT(3) BSD Library Functions Manual NEARBYINT(3)NAMEnearbyint -- round to integral value in floating-point formatSYNOPSIS#include <math.h> double nearbyint(double x); long double nearbyintl(long double x); float nearbyintf(float x);DESCRIPTIONThe nearbyint() functions return the integral value (represented as a double precision number) nearest to x according to the prevailing rounding 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 performant than nearbyint() if the application does not depend on flags being preserved.SPECIAL VALUESnearbyint(+-0) returns +-0 for all rounding modes. nearbyint(+-infinity) returns +-infinity for all rounding modes.SEE ALSOrint(3) ceil(3) floor(3) round(3) trunc(3) lround(3) lrint(3) llround(3) llrint(3) math(3)STANDARDSThe nearbyint() functions conform to ISO/IEC 9899:2011.BSDJuly 01, 2008 BSD
Related Man Pages |
---|
nearbyint(3) - mojave |
nearbyintl(3) - mojave |
rint(3) - freebsd |
nearbyint(3) - freebsd |
rintl(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Perl:: mass replacement of converting C code formats to tgmath.h |