HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11578
Result type/
type parameters
The result is of type INTEGER(8).
Result
KZEXT converts A to INTEGER(8) by sign-extending zeroes instead of the actual sign bit.
LBOUND(ARRAY, DIM)
Optional argument
DIM
Description
Returns all the lower bounds or a specified lower bound of an array.
Class
Inquiry function.
Arguments
ARRAY may be of any type. It must not be scalar. It must not be a pointer that is
disassociated or an allocatable array that is not allocated.
DIM (optional) must be scalar and of type integer with a value in the range 1 <= DIM <=
n
,
where
n
is the rank of ARRAY. The corresponding actual argument must not
be an optional dummy argument.
Result type,
type parameters,
and shape
The result is of type default integer. It is scalar if DIM is present; otherwise, the result is an
array of rank one and size
n
, where
n
is the rank of ARRAY.
Result value
Case 1 For an array section or for an array expression other than a whole array or
array structure component, LBOUND(ARRAY, DIM) has the value 1. For a
whole array or array structure component, LBOUND(ARRAY, DIM) has the
value: