Returns the least integer greater than or equal to its argument.
+---------------------------------Fortran 95---------------------------------+
+-----------------------------End of Fortran 95------------------------------+
Class
Elemental function
Result Type and Attributes
+---------------------------------Fortran 95---------------------------------+
+-----------------------------End of Fortran 95------------------------------+
Result Value
The result has a value equal to the least integer greater than or equal to A.
+---------------------------------Fortran 95---------------------------------+
The result is undefined if the result cannot be represented as an integer of the specified KIND.
+-----------------------------End of Fortran 95------------------------------+
Examples
CEILING(-3.7) has the value -3. CEILING(3.7) has the value 4.
+---------------------------------Fortran 95---------------------------------+
CEILING(1000.1, KIND=2) has the value 1 001, with a kind type parameter of two.
+-----------------------------End of Fortran 95------------------------------+