Visible to Intel only — GUID: GUID-6419EA92-B3D4-46F8-AF27-F49EAE974005
Visible to Intel only — GUID: GUID-6419EA92-B3D4-46F8-AF27-F49EAE974005
DFLOAT
Elemental Intrinsic Function (Generic): Converts an integer to double-precision real type.
result = DFLOAT (a)
a |
(Input) Must be of type integer. |
Results
The result type is double-precision real (by default, REAL(8) or REAL*8). Functions that cause conversion of one data type to another type have the same effect as the implied conversion in assignment statements.
Specific Name 1 |
Argument Type |
Result Type 2 |
---|---|---|
INTEGER(1) |
REAL(8) |
|
DFLOTI |
INTEGER(2) |
REAL(8) |
DFLOTJ |
INTEGER(4) |
REAL(8) |
DFLOTK |
INTEGER(8) |
REAL(8) |
1These specific functions cannot be passed as actual arguments. 2The setting of compiler options specifying double size can affect DFLOAT. |
Example
DFLOAT (-4) has the value -4.0.