Mathematics For Computing
Mathematics For Computing
Computing
Dr. M H B Ariyaratne
Binary Numbers
Bi means two
Made up of
Base 2 values
0 1
s and s
Ex = 101 (one-oh-one/one-zero-one)
How to show - 1012
Reference
Binary Numbers (Mixed Numbers)
Example: 10.1
· 8 Bits = 1 Byte
1. 1001011
2. 110101
3. 10001011
4. 01000000
5. 00111111
Decimal to Binary (Whole Numbers)
Exercise D2E2
1. 63
2. 33
3. 100
4. 120
5. 168
Decimal to Binary (Fraction Numbers)
Exercise D2E3
1. 0.63
2. 0.435
3. 4.1
4. 8.64
5. 2.531
Binary to Decimal (Fraction Numbers)
Exercise D2E4
1. 0.1
2. 0.1001
3. 0.111
4. 1.001
5. 11.11
Two's Complement