OpenBSD manual page server

Manual Page Search Parameters

FLOOR(3) Library Functions Manual FLOOR(3)

floor, floorf, floorlround to largest integral value not greater than x

#include <math.h>

double
floor(double x);

float
floorf(float x);

long double
floorl(long double x);

The () function returns the largest integral value less than or equal to x. The () function is a single precision version of floor(). The () function is an extended precision version of floor().

abs(3), ceil(3), fabs(3), nextafter(3), rint(3)

The floor() function conforms to ANSI X3.159-1989 (“ANSI C89”).

July 7, 2011 OpenBSD-5.3