Adding Hex Numbers
- Starting from right, digits are added together.
- If the result is less than 16, write that digit as the sum for that position.
- If the result is greater than 16, subtract 16 from result to get the digit for that position and carry 1 to the next digit.
23D9 | (9 + 14 = 23) | (23 – 16 = 7 with a carry) | |
+ | 94BE | (1 + 13 + 11 = 25) | (25 – 16 = 9 with a carry) |
(1 + 3 + 4 = 8) | |||
= | B897 | (2 + 9 = B) |
Add 93D9 + 94BE.
93D9 | (9 + 14 = 23) | (23 – 16 = 7 with a carry) | |
+ | 94BE | (1 + 13 + 11 = 25) | (25 – 16 = 9 with a carry) |
(1 + 3 + 4 = 8) | |||
= | 12897 | (9 + 9 = 18) | (18 – 16 = 2 with a carry) |
Related topics:
Counting in Decimal, Binary, Hexadecimal | Binary Addition | Binary Subtraction | Hex Subtraction | Hexadecimal to Decimal Conversion
List of topics: Microcomputer
No comments:
Post a Comment