libm.info: floor

Go forward to fmod
Go backward to fabs
Go up to Math
Go to the top op libm

`floor', `floorf', `ceil', `ceilf'--floor and ceiling

*Synopsis*
     #include <math.h>
     double floor(double X);
     float floorf(float X);
     double ceil(double X);
     float ceilf(float X);
   *Description*
`floor' and `floorf' find the nearest integer less than or equal to X.
`ceil' and `ceilf' find the nearest integer greater than or equal to X.
*Returns*
`floor' and `ceil' return the integer result as a double.  `floorf' and
`ceilf' return the integer result as a float.
*Portability*
`floor' and `ceil' are ANSI.  `floorf' and `ceilf' are extensions.