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: | 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 smallest integer greater than or equal to A. |
Examples
CEILING (4.8) has the value 5.
CEILING (-2.55) has the value -2.0.