Back Home Up Next

Subchapters:

Variable types

type 

range bytes

to define

to convert
byte 0 to 255 1 b=15B b=byte(x)
integer -32768 to 32767 2 i=15 

i=15S

i=fix(x)
unsigned_integer 0 to 65535 2 i=15US i=uint(x)
long -231 to 231-1  4 j=15L

j=25631l

 j=long(x)
unsigned long 0 to 232-1 4 k=1554856UL k=ulong(x)
very long -263 to 263-1 8 m=-123456789012345678LL m=long64(x)
unsigned very long 0 to 264-1 8 m=123654789658ULL m=ulong64(x)
floating point +/- 1038, 7 sig. figs  4 y=1.7

y=1.5e12

y=float(x)
double precision +/- 10308, 14 sig. figs. 8 y=1.5d

y=1.5d40

y=double(x)
complex 2 floating points 8 z=complex(1.2,0.3) z=complex(x)
double complex complex with double_precision 16 z=dcomplex(1d5,2.3d21) z=dcomplex(x)
string  (user defined) 0-32767   s='blah' s=string(x)

 

 

IDL courses C. Morisset 2004 IA/UNAM V 2.2

Back Home Up Next