Beruflich Dokumente
Kultur Dokumente
➢ In non-positional numeral system, the value of a digit/symbol does not depend on its position. For
example, in a Roman numeral system:
C : symbol 'C' means 100
CCC : triple ‘C’s means 300 because each symbol has a value of 100.
(dndn-1dn-2…d1d0.d-1d-2..d-n)r = (dn x rn) + (dn-1 x rn-1)+ (dn-2x rn-2)+…+ (d1 x r1)+ (d0 x r0) +(d-1 x r-1)
+ (d-2 x r-2)+…..+ (d-n x r-n)
Examples
Convert the following to base 10. Round off results to 3 decimal places.
1. 1011.012
Solution:
Note: r = 2
1011.012 = (1x23)+(0x22)+(1x21)+(1x20)+(0x2-1)+(1x2-2) = 11.2510
1011.012 = 11.25010
2. A2E. 3C16
Solution:
note: r = 16
A2E. 3C16 = (A x 162) + (2 x 161) + (E x 160) + (3 x 16-1) + (C x 16-2)
replace the letter symbols with its decimal equivalent
A2E. 3C16 = (10 x 162) + (2 x 161) + (14 x 160) + (3 x 16-1) + (12 x 16-2)
A2E. 3C16 = 2606.23410
Exercise 1:
Convert the following to base 10. Round off results to 3 decimal places.
1. 2356.658
2. 2356.659
3. 67A5.6511
4. 101111.1112
5. CABD.A3B14
Examples
Convert the following decimal numbers to base r. Perform 4 multiplications(fraction part)
1. 25.7910 to base 2
Exercise 2:
Convert the following numbers to base r. Perform 4 multiplications(fraction part)
1. 2356.6510 to octal
2. 7356.61510 to hexadecimal
3. 347.6510 to binary
4. 1011.1115 to base 9
Examples
Convert the following to the indicated base:
1. 163.1248 to base 2
2. 365A.5C16 to base 2
3. 11011010010001.10110112 to base 8 and 16
Solutions:
1.
Octal 1 6 3 . 1 2 4
Binary 001 110 011 . 001 010 100
Binary : 001110011.001010100
Final Answer : 1110011.001012
Note: remove insignificant bits(0s at the rightmost and leftmost)
2.
Hexadecimal 3 6 5 A . 5 C
Binary 0011 0110 0101 1010 . 0101 1100
Binary : 0011011001011010.01011100
Final Answer : 11011001011010.0101112
3.
Binary 11011010010001.1011011
Octal 11 011 010 010 001 . 101 101 1 //partition the number into groups of 3 bits
011 011 010 010 001 . 101 101 100 //add zeros to groups with less than 3 bits
33221.554 // convert each binary group to its octal equivalent
Final Answer : 33221.5548
Hexa 0011 0110 1001 0001 . 1011 0110 //partition the number into groups of 4 bits then
add zeros to groups with less than 4 bits
3 691.B6 //convert each group to its hexadecimal equivalent
Final Answer : 3691.B616
Exercise 3:
Convert the following numbers to the indicated base.
1. 3125.2348 = _______2
2. 52AD.5C816 = ______2
3. 10110111100100011.10101011012 = _______8 = ________16
4. 2673.67410 = _________16 =_________8 = __________2
References
1. https://byjus.com/maths/number-system/#what-is-number-system
2. https://www.c-programming-simple-steps.com/number-systems.html
3. https://en.wikipedia.org/wiki/List_of_numeral_systems
4. https://www.tutorialspoint.com/computer_logical_organization/digital_number_system.htm
Videos:
1. https://youtu.be/EewV3RBhiao