Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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)