Converts an expression tosingle-precision floating-point data type.
Extracts data from an expression and places it in a single-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 = FLOAT(a)
.
INFO, b
B FLOAT = Array(6)
PRINT, b
0.00000 1.00000 2.00000 3.00000 4.00000
5.00000
c = FLOAT(b, 8, 2, 2)
INFO, c
C FLOAT = Array(2, 2)
PRINT, c
2.00000 3.00000
4.00000 5.00000
For more information on using this function to extract data, see the PV-WAVE Programmer's Guide.