floor, floorf - round to largest integral value not greater
than x
#include <math.h>
double
floor(double x);
float
floorf(float x);
The floor() function returns the largest integral value less
than or
equal to x. The floorf() function is a single precision
version of
floor().
abs(3), ceil(3), fabs(3), ieee(3), math(3), rint(3)
The floor() function conforms to ANSI X3.159-1989 (``ANSI
C'').
OpenBSD 3.6 March 10, 1994
[ Back ] |