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
dimi
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.