Слайд 2Laboratory work №1
Week 1
Learn Numerical Systems
Слайд 4Binary numbers and their decimal equivalents
Слайд 5Decimal to binary conversion
For example,
Divide number by 2.
Reminder goes each columns.
22/2=11, 0
11/2=5
reminder 1
5/2=2 remainder 1
2/2=1, 0
1/2= 0, reminder 1.
Слайд 6Binary to decimal conversion
Слайд 7Decimal to octal conversion
Example,
Divide number by 8.
22/8=16, reminder 6
2/8=0, reminder 2
Octal to
decimal conversion
Слайд 9Decimal to hexadecimal conversion
Divide the number by 16.
22/16=1 reminder 6
1/16=0 reminder 1
Hexadecimal
to decimal conversion
Слайд 10Hexadecimal to binary conversion
Conversion between hexadecimal and binary is easy because each
hexadecimal digit directly corresponds to four binary digits.
Слайд 11Binary to hexadecimal conversion
Start reading from the right.
The four least significant bits
are
Слайд 12Practice
4810 to binary
1910 to binary
100102 to decimal
111002 to decimal
6416
to decimal
2E16 to decimal
Слайд 14Answers
4810 = 1100002
1910 = 100112
100102 = 1810
111002 = 2810
6416 =
10010
2E16 = 4610