OpenNET - 30 лет. Поддержать можно
донатом или подпиской в
Boosty
Интерактивная система просмотра системных руководств (man-ов)
nearbyint (3) nearbyint (3) ( Solaris man: Библиотечные вызовы ) >> nearbyint (3) ( FreeBSD man: Библиотечные вызовы ) nearbyint (3) ( Русские man: Библиотечные вызовы ) nearbyint (3) ( Linux man: Библиотечные вызовы ) nearbyint (3) ( POSIX man: Библиотечные вызовы ) BSD mandoc
NAME
nearbyint
nearbyintf
rint
rintf
- round to integral value in floating-point format
LIBRARY
Lb libm
SYNOPSIS
#include <math.h>
double
nearbyint (double x);
float
nearbyintf (float x);
double
rint (double x);
float
rintf (float x);
DESCRIPTION
The
rint ();
and the
rintf ();
functions return the integral value nearest to
Fa x
according to the prevailing rounding mode.
These functions raise an inexact exception when the original argument
is not an exact integer.
The
nearbyint ();
and
nearbyintf ();
functions perform the same operation, except that they do not raise
an inexact exception.
SEE ALSO
abs (3),
ceil (3),
fabs (3),
fenv (3),
floor (3),
ieee (3),
lrint (3),
lround (3),
math (3),
round (3)
STANDARDS
The
nearbyint (,);
nearbyintf (,);
rint (,);
and
rintf ();
functions conform to
St -isoC-99 .
HISTORY
A
rint ();
function appeared in
AT&T System
v6 .
The
nearbyint ();
and
nearbyintf ();
functions appeared in
Fx 5.3 .
Index
NAME
LIBRARY
SYNOPSIS
DESCRIPTION
SEE ALSO
STANDARDS
HISTORY