floorf


Calculates the maximum integer value less than x and x

[Classification]

Mathematical library

[Syntax]

#include <math.h>

float __far floorf(float x);

[Return value]

Returns the maximum integer value less than x and x.

If x is ±∞, floorf returns ±∞ and sets macro ERANGE to global variable errno.

If x is a Not-a-Number(NaN), floorf returns a Not-a-Number (NaN) and sets macro EDOM to global variable errno.

[Description]

This function calculates the maximum integer value less than x and x.