2nd Quarter Number Systems and Codes With No Answer 2
2nd Quarter Number Systems and Codes With No Answer 2
Decimal 10 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Octal 8 0, 1, 2, 3, 4, 5, 6, 7
Hexadecimal 16 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
2.0 Binary Numbers
•Note that the first remainder becomes the most significant bit (MSB). The
last remainder becomes the least significant bit (LSB).
2.3 Binary ➔ Decimal Conversion
A binary number is converted to a decimal number by summing
together the weights of various positions in the binary number which
contain a 1. For example, 10101112 = 8710.
3.0 Hexadecimal Number
The hexadecimal number uses base 16. It uses the digits 0 through 9
plus the letters A, B, C, D, E and F.
The letter A stands for decimal 10, B for 11, C for 12, D for 13, E for
14 and F for 15.
3.1 Hexadecimal Number
3.2 Decimal ➔ Hexadecimal Conversion
A decimal number can be converted to hex number by successively
dividing the number by 16 as follows:
3.3 Hexadecimal ➔ Decimal Conversion
To convert a hex number to a decimal number, multiply each hex
value by the weight of the digit and sum the results. For example,
1A716 = 42310.
3.4 Hexadecimal Binary Conversion
Each hex digit can be represented by a 4-bit binary number as
shown above. Conversion from hex to binary is very straightforward.
Each hex digit is replaced by 4-bit binary number.
BCD is not another number system like binary, octal, decimal and
hexadecimal. It is in fact the decimal system with each digit encoded
in its binary equivalent. A BCD code is not the same as a straight
binary number. For example, the BCD code requires 12 bits, while
the straight binary number requires only 10 bits to represent 87310.
5.3 BCD ➔ Decimal Conversion
Decimal ➔ Binary
Decimal ➔ Binary
2. Then, convert the fraction by multiply it with the based we want to convert:
Binary ➔ Decimal
Eg. 1010.012 = _________ 10
Technique:
– Multiply each binary number by 2-n, where -n is the weight of the bit for fraction starting from
left to right. .
– Then, sum the results.
1010.012
= 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 . 0 x 2-1 + 1 x 2-2
= 10 + 0.25
= 10.25 10
Therefore, 1010.012 = 10.2510
6.0 Base Conversion for Floating Points with the
Remainder Method
Octal – Decimal
Technique:
– Multiply each octal number by 8-n, where -n is the weight of the bit for fraction
starting from left to right. .
– Then, sum the results.
46.38 = 4 x 81 + 6 x 80 + 3 x 8-1
= 38 + 0.375
= 38.375 10
________ 1. 84 ________ 6. 52
________ 2. 25 ________ 7. 38
________ 3. 121 ________ 8. 19
________ 4. 17 ________ 9. 201
________ 5. 66 ________ 10. 103
CONVERSION Convert the following number to
the indicated base/code with
QUIZ 2.1 solution. -
1 pt each 2 pts each 2 pts each
BINARY TO DECIMAL DECIMAL TO BINARY BINARY TO HEXA-DC