9.3.138 SELECTED_REAL_KIND ([P] [, R])

Description:  Returns the value of the kind parameter of a real data type.  
Class:  Transformational function; Generic 
Arguments:  P (opt) Must be scalar and of type integer. 
  R (opt) 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 a 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:
   -1 if the precision is not available
   -2 if the exponent range is not available
   -3 if neither is available
If more than one kind type parameter value meets the criteria, the value returned is the one with the smallest decimal precision. (For information on the real model, see Section D.2.) 

Examples

SELECTED_REAL_KIND (6, 70) = 8


Previous Page Next Page Table of Contents