Synopsis
#include <math.h>
double floor(double x);
Description

floorf computes the largest integer value not greater than x.

IEC 60559 math library behavior

floorf(±0) is±0.
floorf(±?) is ±?.

Portability

floorf conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).