0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15
1009 / 16 = 63.0625 (disregard everything after the decimal point) = 63
0.0625 * 16 = 1
63 / 16 = 3.9375 (disregard everything after the decimal point) = 3
0.9375 * 16 = 15.
3 / 16 = 0.1875 (disregard everything after the decimal point) = 0
3F1
54 / 16 = 3.375 = 3
0.375 * 16 = 6 (1st number)
3 / 16 = 0.1875 (note the 3 (2nd number) as this is the end of the chain)
DEC 54 = HEX 36
633 / 16 = 39.5625 = 39
0.5625 * 16 = 9 (1st number)
39 / 16 = 2.4375 = 2
0.4375 * 16 = 7 (2nd number)
2 / 16 = 0.125 = 2 (3rd number)
DEC 633 = HEX 279
256 / 16 = 16.0
0 * 16 = 0 (1st number)
16 / 16 = 1.0 = 2
0 * 16 = 0 (2nd number)
1 / 16 = 0.0.625 = 1 (3rd number)
DEC 256 = HEX 100
A = 10
10 * 16^2 = 2560
7 = 7
7 * 16^1 = 112
F = 15
15 * 16^0 = 15
2560 + 112 + 15 = 2687
HEX A7F = DEC 2687
F = 15
15 * 16^3 = 61440
6 = 6
6 * 16^2 = 1536
F = 15
15 * 16^1 = 240
1 = 1
1 * 16^0 = 1
61440 + 1536 + 240 + 1 = 63217
HEX F6F1 = DEC 63217
F = 15
15 * 16^1 = 240
1 = 1
1 * 16^0 = 1
240 + 1 = 241
HEX F1 = DEC 241
Hopefully that all makes sense, if not ping me an email and I will try to explain further.
Copyright © 2023 - slash-root.com