Hexadecimal addition subtraction multiplication division
Hexadecimal addition and subtraction:
Hexadecimal addition and subtraction is actually very simple. Just remember that the letters in the hexadecimal system represent the decimal numbers. Remember A(10), B(11), C(12), D(13), E(14), F(15).
However, due to inertial thinking, sometimes we often make the mistake of reading the decimal numbers represented by letters as one digit more, such as reading A as 11 and B as 12. So we must remember that A is 10, not 11, and the values represented by other letters should also be paid attention to.
Next, let's start to talk about hexadecimal addition and subtraction. Hexadecimal addition and subtraction are the same as decimal addition and subtraction algorithms. Just remember a few key points. Take 6AE9H+4B7CH as an example. The first digit is 9+C(12)=21. If the result is ≥16, then subtract 16 from the result and then carry the previous digit over, so the result is 5. E(14)+7=21, carry the previous digit over, so the result is 22. Subtract 16 to get 6, then carry the previous digit over. A(10)+B(11)=21, carry the previous digit over, so the result is 22. Subtract 16 to get 6, then carry the previous digit over, 6+4=A(10), carry the previous digit over, so the result is B(11), so 6AE9H+4B7CH=A665H.
The same is true for subtracting hexadecimal numbers, but note that when the number is not enough to subtract, the value borrowed from the previous number is not 10, but 16. For example, if 4-9 is not enough to subtract, the value borrowed from the previous number is not 14-9, but 20-9.