Convertsan expression to double-precision floating-point data type.
Extracts data from an expression and places it in a double-precision floating-point scalar or array.
offset The offset, in bytes, from the beginning of expr to where the extraction is to begin.
dimi (optional) The dimensions of the result. May be any scalar expression. Up to eight dimensions may be specified.
a = INDGEN(6) PRINT, a
0 1 2 3 4 5
b = DOUBLE(a)
.
INFO, b
B DOUBLE = Array(6)
PRINT, b
0.0000000 1.0000000 2.0000000 3.0000000
4.0000000 5.0000000
c = DOUBLE(b, 16, 2, 2)
INFO, c
C DOUBLE = Array(2, 2)
PRINT, c
2.0000000 3.0000000
4.0000000 5.0000000
NOTE: If you want to place the double-precision value of a constant into a variable, it is more efficient to use the d or D constant notation rather than the double function. For example:
For more information on using this function to extract data, see the PV-WAVE Programmer's Guide.