9.3.52 FLOOR (A [, KIND])

Description:  Returns the greatest integer less than or equal to its argument.  
Class:  Elemental function; Generic 
Arguments:  A Must be of type real.  
  KIND (opt)  Must be a scalar integer initialization expression. This argument is a Fortran 95 feature. 
Results:  The result is of type integer. If KIND is present, the kind parameter of the result is that specified by KIND; otherwise, the kind parameter of the result is that of default integer. If the processor cannot represent the result value in the kind of the result, the result is undefined.

The value of the result is equal to the greatest integer less than or equal to A.  

Examples

FLOOR (4.8) has the value 4.

FLOOR (-5.6) has the value -6.


Previous Page Next Page Table of Contents