Chapter 3
Chapter 3
Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001
Decimal 0 1 2 3 4 5 6 7 8 9
Octal number System (base 8) (Oct)
It uses 8 symbols 0-7 to represent numbers;
EBCDIC:
Pronounced as “Eb-see-dick” and stands for Extended Binary Coded Decimal
InterchangeCode.
ASCII-7
ASCII stands for American Standard Code for Information Interchange.
1
(135) 10 = 1*102+3*101+5*100
The subscript 10 is used to indicate 135 is in base 10 number system.
The number 10 in binary is not the same as 10 in decimal because the value of 1
in the binary is not the same as the value of the 1 in the decimal.
2
To convert binary to hexadecimal group four binary digits together starting from right
and if there are no enough digits add zeros at the left.
EX. Convert 111100100 to hexadecimal Conver 000111001111 to Hexadecimal
111100100 =0001 1110 0100 111001111 =0001 1100 1111
=1 14 4 =1 12 15
=1 E 4 =1 B F
= 1E416 =(1BF)16
To convert from Octal to binary, convert each octal digit to its equivalent 3 bit binary
starting from right.
EX. Convert (675) eight to binary Convert 231eight to binary
675eight =110 111 101 231eight = 010 011 001
=110111101two =10011001two
To convert from Hexadecimal to binary convert each hex. Digit to its equivalent 4-bit
binary starting from right.
Ex. Convert 23416 to binary Convert 2AC to binary
23416 = 0010 0011 0100 2AC16 =0010 1010 1100
= 10001101002 =10101011002