9.3.23 CEILING (A [, KIND])

Description:  Returns the smallest integer greater 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 value of the result is equal to the smallest integer greater than or equal to A. The result is undefined if the value cannot be represented in the default integer range.  

Examples

CEILING (4.8) has the value 5.

CEILING (-2.55) has the value -2.0.


Previous Page Next Page Table of Contents