REAL — Convert to real type#
- 
REAL(A[, KIND])#
- REAL(A [, KIND])converts its argument- Ato a real type. The- REALPARTfunction is provided for compatibility with g77, and its use is strongly discouraged.- Parameters:
- A – Shall be - INTEGER,- REAL, or- COMPLEX.
- KIND – (Optional) An - INTEGERinitialization expression indicating the kind parameter of the result.
 
- Returns:
- These functions return a - REALvariable or array under the following rules:
 - Standard:
- Fortran 77 and later, with - KINDargument Fortran 90 and later, has GNU extensions
- Class:
- Elemental function 
- Syntax:
- RESULT = REAL(A [, KIND]) RESULT = REALPART(Z) 
- Example:
- program test_real complex :: x = (1.0, 2.0) print *, real(x), real(x,8), realpart(x) end program test_real 
- Specific names:
- Name - Argument - Return type - Standard - FLOAT(A)- INTEGER(4)- REAL(4)- Fortran 77 and later - DFLOAT(A)- INTEGER(4)- REAL(8)- GNU extension - FLOATI(A)- INTEGER(2)- REAL(4)- GNU extension (-fdec) - FLOATJ(A)- INTEGER(4)- REAL(4)- GNU extension (-fdec) - FLOATK(A)- INTEGER(8)- REAL(4)- GNU extension (-fdec) - SNGL(A)- REAL(8)- REAL(4)- Fortran 77 and later 
- See also: