Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-53720687-7FA7-4581-8DBF-F390C5CC9FE9
Visible to Intel only — GUID: GUID-53720687-7FA7-4581-8DBF-F390C5CC9FE9
DNUM
Elemental Intrinsic Function (Specific): Converts a character string to a REAL(8) value. This function cannot be passed as an actual argument.
result = DNUM (i)
i |
(Input) Must be of type character. |
Results
The result type is REAL(8). The result value is the double-precision real value represented by the character string i.
Example
DNUM ("3.14159") has the value 3.14159 of type REAL(8).
The following sets x to 311.0:
CHARACTER(3) i DOUBLE PRECISION x i = "311" x = DNUM(i)