インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス
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. |
The result type is REAL(8). The result value is the double-precision real value represented by the character string i.
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)