ceiling(3I)

CEILING - Returns the least integer greater than or equal to a

As shipped in IRIX 6.5.15. Last changed in IRIX 6.5.5.

NAME
     CEILING - Returns the least integer greater than or equal to a

SYNOPSIS
     CEILING ([A=]a [,[KIND=]kind])

IMPLEMENTATION
     UNICOS, UNICOS/mk, IRIX systems

     CF90, MIPSpro 7 Fortran 90

STANDARDS
     Fortran

DESCRIPTION
     The CEILING intrinsic function returns the least integer greater than
     or equal to a.  It accepts the following arguments:

     a         Must be of type real

     kind      An integer scalar value.  Must be a scalar integer
               initialization expression

     CEILING is an elemental function.  The name of this intrinsic cannot
     be passed as an argument.

NOTES
     On UNICOS systems, both execution speed and the number of bits used in
     mathematical operations are affected when compiling with
     f90 -O fastint, which is the default setting.  For more information on
     this, see the CF90 Commands and Directives Reference Manual.

RETURN VALUES
     The result type is an integer.  If kind is specified, the kind type
     parameter is that specified by kind.  If kind is not specified, the
     result is of type default integer.  The result has a value equal to
     the least integer greater than or equal to a.  The result is undefined
     if the system cannot represent this value in the default integer type.

EXAMPLES
     CEILING(3.7) has the value 4.  CEILING(-3.7) has the value -3.

SEE ALSO
     CF90 Commands and Directives Reference Manual

     Intrinsic Procedures Reference Manual for the printed version of this
     man page.