7.12.9.2 The floor functions

Synopsis

1

#include <math.h>
double floor(double x);
float floorf(float x);
long double floorl(long double x);

Description

2

The floor functions compute the largest integer value not greater than x.

Returns

3

The floor functions return ⌊x⌋, expressed as a floating-point number.