Everything

floorf


Returns the largest integral value not greater than or equal to the given floating-point number.

[Format]

#include <mathf.h>

float floorf (float f);

[Parameters]

f Floating-point number for which largest integral value not greater than that number is to be computed

[Return values]

Largest integral value not greater than or equal to f

[Remarks]

The floorf function returns the largest integral value not greater than or equal to f, expressed as a float type value. Therefore, if f is negative, the value after rounding-up of the fractional part is returned.