Интерактивная система просмотра системных руководств (man-ов)
roundl (3) >> roundl (3) ( FreeBSD man: Библиотечные вызовы ) roundl (3) ( Русские man: Библиотечные вызовы ) roundl (3) ( Linux man: Библиотечные вызовы ) roundl (3) ( POSIX man: Библиотечные вызовы ) BSD mandoc
NAME
round
roundf
roundl
- round to nearest integral value
LIBRARY
Lb libm
SYNOPSIS
#include <math.h>
double
round (double x);
float
roundf (float x);
long double
roundl (long double x);
DESCRIPTION
The
round (,);
roundf (,);
and
roundl ();
functions return the nearest integral value to
Fa x ;
if
Fa x
lies halfway between two integral values, then these
functions return the integral value with the larger
absolute value (i.e., they round away from zero).
SEE ALSO
ceil (3),
floor (3),
ieee (3),
lrint (3),
lround (3),
math (3),
rint (3),
trunc (3)
STANDARDS
These functions conform to
St -isoC-99 .
HISTORY
The
round ();
and
roundf ();
functions appeared in
Fx 5.3 .
The
roundl ();
function appeared in
Fx 6.0 .
Index
NAME
LIBRARY
SYNOPSIS
DESCRIPTION
SEE ALSO
STANDARDS
HISTORY