Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

floor, floorf, floorl - Round down

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double floor(double x);
float floorf(float x);
long double floorl(long double);

These functions round down the floating-point number x to an integer.

Return val.

Largest integer in floating-point format not greater than x.

See also

ceil