floor

Computes the largest integer not greater than the argument.

Library:LibC
Classification:ANSI
Service:Math

Syntax

  #include <math.h> 
   
  double floor (
     double   x);
  

Parameters

x

(IN) Specifies an argument.

Return Values

Returns the largest integer not greater than x, expressed as a double type.

See Also

fmod