Intel® Fortran Compiler 16.0 User and Reference Guide

IEEE_SELECTED_REAL_KIND

Transformational Module Intrinsic Function (Generic): Returns the the value of the kind parameter of an IEEE REAL data type.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

result = IEEE_SELECTED_REAL_KIND ([p][,r])

p

(Input; optional) Must be scalar and of type INTEGER.

r

(Input; optional) Must be scalar and of type INTEGER.

At least one argument must be specified.

Results

The result is a scalar of type default integer. The result has a value equal to a value of the kind parameter of an IEEE real data type with decimal precision, as returned by the function PRECISION, of at least p digits and a decimal exponent range, as returned by the function RANGE, of at least r.

If no such kind type parameter is available on the processor, the result is as follows:

If more than one kind type parameter value meets the criteria, the value returned is the one with the smallest decimal precision.

Example

IEEE_SELECTED_REAL_KIND (6, 70) = 8.

See Also