Integer Representation 
Integers can be represented in decimal, hexadecimal and octal forms. Decimal forms use base b=10, hexadecimal uses base b=16 and octal uses base b=8. Each number form has a syntax that permits an integer to be specified as Byte, Integer or Long.

The three number forms exist for interaction between computers and people. There is no difference in the representations of the integers inside the computer. The decimal form is the most natural for people. However, the octal and hexadecimal forms provide a convenient way to control or see the binary number pattern. There is no way to directly enter a binary form. For a further description of the representation of binary forms using octal and hexadecimal, see this link.

The notation that is used to represent the three forms is shown in the table below. This table is also in IDL Help.
 
 

Base Type Form Example
Decimal Byte 
Integer 
Long
nB 

nL
12B, 34B 
12, 425 
12L, 94L
Hexadecimal Byte 
Integer 
Long
'n'XB 
'n'X 
'n'XL
'2E'XB 
'0F'X 
'FF'XL
Octal Byte 
Integer 
Long
"nB 
"n  or 'n'O 
"nL or 'n'OL
"12B 
"12 or '12'O 
"7654321L or '7654321'OL