Can someone explain these number conversions

General chit-chat, ramblings, odds and ends.

Moderator: Alastair

Post Reply
Message
Author
User avatar
Alex
Posts: 719
Joined: Tue Oct 24, 2006 10:45 pm
Location: Netherlands

Can someone explain these number conversions

#1 Post by Alex » Fri Dec 11, 2020 2:26 pm

In several programs the values are stored like the numbers in the third column. How are these numbers converted?

Dec Hex ???
1 1 8100
2 2 8200
3 3 8240
4 4 8300
5 5 8320
6 6 8340
7 7 8360
8 8 8400
9 9 8410
10 A 8420
11 B 8430
12 C 8440
13 D 8450
14 E 8460
15 F 8470
16 10 8500
17 11 8508
18 12 8510
19 13 8518
20 14 8520
21 15 8528
22 16 8530
23 17 8538
24 18 8540
25 19 8548
26 1A 8550
27 1B 8558
28 1C 8560
29 1D 8568
30 1E 8570
31 1F 8578
32 20 8600
33 21 8604
34 22 8608
35 23 860c
36 24 8610
37 25 8614
38 26 8618
39 27 861c
40 28 8620
41 29 8624
42 2A 8628
43 2B 862c
44 2C 8630
45 2D 8634
46 2E 8638
47 2F 863c
48 30 8640
49 31 8644
50 32 8648
51 33 864c
52 34 8650
53 35 8654
54 36 8658
55 37 865c
56 38 8660
57 39 8664
58 3A 8668
59 3B 866c
60 3C 8670
61 3D 8674
62 3E 8678
63 3F 867c
64 40 8700
65 41 8702
66 42 8704
67 43 8706
68 44 8708
69 45 870a
70 46 870c
71 47 870e
72 48 8710
73 49 8712
74 4A 8714
75 4B 8716
76 4C 8718
77 4D 871a
etc

Post Reply