Function floor

Top 

Declaration:

float floor(float x);

Description

The floor function calculates the greatest integer number that is no greater than x.

Returned value

The floor function returns the greatest floating-point number that is no greater than argument x, with the fractional part equal to 0.