FLOOR(3) NEWLIB FLOOR(3)NAME
1.20 `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.
SEE ALSOfloor is part of the library. The full documentation for is maintained
as a Texinfo manual. If info and are properly installed at your site,
the command
info
will give you access to the complete manual.
NEWLIB April 2010 FLOOR(3)