SELECTED(3F) SELECTED(3F)
- return a kind type parameter given a decimal exponent range or
precision.
selected_int_kind (r)
selected_real_kind (p,r)
The Fortran 90 transformational function selected_int_kind returns the
kind type parameter of an integer type that can represent the range of
values n such that -10**r < n < 10**r. If no such kind exists, the
result is -1. If more than one kind meets the criteria, the result is
the kind type parameter of the kind with the smallest decimal exponent
range. Both r and the result are scalars of integer type.
The selected_real_kind function is similar, but returns the kind type
parameter of a real type that has the decimal precision of at least p
digits and a decimal exponent range of at least r. While precision p and
range r are optional, at least one of them must be specified. They must
be scalar and of integer type. If more than one kind satisfies the
condition, the result is the kind type parameter of the kind with the
smallest decimal precision. If a suitable kind is not found, the result
is:
-1 if the requested precision is unavailable
-2 if the requested range is unavailable
-3 if both are unavailable
kind(3F), precision(3F), range(3F)
PPPPaaaaggggeeee 1111 [ Back ]
|