✔ 最佳答案
In base-10,
123
= (10)^2 * 1 + (10)^1 * 2 + (10)^0 * 3
= 100 + 20 + 3
= 123
In base-16,
DE
= (16)^1 * 13 + (16)^0 * 14
= 208 + 14
= 222
Similarly, convert base-16 to base-10:
E = 14
B = 11
E + B = 25
25 / 16 = 1 with remainder 9
thus = 19 (base-16)
Subtraction:
Same idea...
For example:
DE - F
E is smaller than F, so you borrow 1 (i.e. 16 because it is base-16) from the left digit D, D - 1 becomes C.
Add the 1 to the right digit:
(E + 16) - F
= 30 - F
= 30 - 15
= 15
Attaching left digit C to 15, we have CF