HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11618
Argument
X must be of type REAL(4).
Result type/
type parameters
REAL(4).
NOTE SECNDS is accurate to one one-hundredth of a second (0.01 second). The SECNDS
routine is useful for computing elapsed time for a code’s execution.
SELECTED_INT_KIND(R)
Description
Returns a value of the kind type parameter of an integer data type that represents all integer
values
n
with -10
R
<
n
< 10
R
.
Class
Transformational function.
Argument
R must be scalar and of type integer.
Result type,
type parameters,
and shape
Default integer scalar.
Result value
The result has a value equal to the value of the kind type parameter of an integer data type
that represents all values
n
in the range of values
n
with -10
R
<
n
< 10
R
, or if no such kind
type parameter is available on the processor, the result is –1.
If more than one kind type parameter meets the criteria, the value returned is the one with
the smallest decimal exponent range, unless there are several such values, in which case the
smallest of these kind values is returned.