floor() and floorf()

Syntax
  #include <math.h>

  
  double floor (double x);

  
  float  floorf(float x);

  
Description

floor() calculates the largest integral number less than or equal to x.

Return

The largest integral number not less than or equal to x.

See also

ceil() and ceilf()

modf() and modff()