HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11532
BTEST(I, POS)
Description
Tests a bit of an integer value.
Class
Elemental function.
Arguments
I must be of type integer.
POS must be of type integer. It must be nonnegative and be less than
BIT_SIZE(I).
Result type
The result is of type default logical.
Result value
The result has the value .TRUE. if bit POS of I has the value 1 and has the value .FALSE. if bit
POS of I has the value 0. The model for the interpretation of an integer value as a sequence of
bits is described in “The Bit Model” on page 508.
Specific forms
BBTEST, BITEST, BJTEST, BKTEST, HTEST.
CEILING(A)
Description
Returns the least integer greater than or equal to its argument.
Class
Elemental function.
Argument
A must be of type real.