floor() and floorf()

Syntax
  #include <
  math.h>

  
  double floor (double x);

  
  float  floorf(float x);

  
Description

floor() calculates the largest integral number not larger than x.

Return

The largest integral number not larger than x.

See also

ceil() and ceilf() and

modf() and modff()