selected(3F)
- return a kind type parameter given a decimal exponent range or precision.
Showing IRIX 6.5. First release of IRIX 6.5.
NAME - return a kind type parameter given a decimal exponent range or precision. SYNOPSIS selected_int_kind (r) selected_real_kind (p,r) DESCRIPTION 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 SEE ALSO kind(3F), precision(3F), range(3F)