9.3.122 QEXT (A) (VMS, U*X)

Description:  Converts a number to quad precision (REAL(16)) type.  
Class:  Elemental function; Generic 
Arguments:  A must be of type integer, real, or complex. 
Results:  The result type is REAL(16) (REAL*16). Functions that cause conversion of one data type to another type have the same effect as the implied conversion in assignment statements.

If A is of type REAL(16), the result is the value of the A with no conversion (QEXT(A) = A).

If A is of type integer or real, the result has as much precision of the significant part of A as a REAL(16) value can contain.

If A is of type complex, the result has as much precision of the significant part of the real part of A as a REAL(16) value can contain.
 

Specific Name1  Argument Type  Result Type 
  INTEGER(1)  REAL(16) 
  INTEGER(2)  REAL(16) 
  INTEGER(4)  REAL(16) 
  INTEGER(8)  REAL(16) 
QEXT REAL(4)  REAL(16) 
QEXTD REAL(8)  REAL(16) 
  REAL(16)  REAL(16) 
  COMPLEX(4)  REAL(16) 
  COMPLEX(8)  REAL(16) 
  COMPLEX(16)  REAL(16) 
1 These specific functions cannot be passed as actual arguments.

Examples

QEXT (4) has the value 4.0 (rounded; there are 32 places to the right of the decimal point).

QEXT ((3.4, 2.0)) has the value 3.4 (rounded; there are 32 places to the right of the decimal point).


Previous Page Next Page Table of Contents