Converts an expression tointeger data type.
Extracts data from an expression and places it in a integer scalar or array.
offset
dimi
CAUTION: If the values of expr are within the range of a long integer, but outside the range of the integer data type (-32,768 to +32,767), a misleading result occurs, without an accompanying message. For example,FIX(66000)
erroneously results in 464.
a = FINDGEN(6) + 0.6
PRINT, a 0.600000 1.60000 2.60000 3.60000 4.60000 5.60000 b = FIX(a)
.
INFO, b
B INT = Array(6)
PRINT, b
0 1 2 3 4 5
c = FIX(b, 4, 2, 2)
INFO, c
C INT = Array(2, 2)
PRINT, c
2 3
4 5
For more information on using this function to extract data, see the PV-WAVE Programmer's Guide.