Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Fundamentals
Lecture 2: Number Systems
Binary, b=2
a={0,1}
Octal, b=8
a={0,1,2,3,4,5,6,7}
Hexadecimal, b=16
a={0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}
03/12/09 Sri Lanka Institute of Information Technology 4
Why Binary is used in
Computers?
Electronic components that represent
binary are better than those that
represent binary because of;
Easier to design
Cost effective
12310 = 11110112
5324110=CFF916
Therefore,110010111012 = 31358
03/12/09 Sri Lanka Institute of Information Technology 11
Number Base Conversion
Binary to Hexadecimal
The binary number is formed into groups of four bits
starting at the decimal point.
Each group is replaced by a hexadecimal digit from 0 to
9, A, B, C, D, E, and F.
For example,
110010111012 becomes 110 0101
1101
6 5 D
Therefore,413578 = 1000010111011112.