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:  If KIND is present, the kind parameter is that specified by KIND; otherwise, the kind parameter is that of default integer. The result value is equal to the greatest integer less than or equal to A. The result is undefined if the value cannot be represented in the default integer range.  

Examples

FLOOR (4.8) has the value 4.

FLOOR (-5.6) has the value -6.


Previous Page Next Page Table of Contents