Reply to Re: help me on Hex codes
If you don't have an account, just leave the password field blank.
: Please will someone tell me how hex codes work!!!!
This got nothing to do with dink, but ok.
Hexadecimal numerals are base 16
ex:
Our numbers (decimal) on right, headecimal on left.
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F
16 10
17 11
and so on and so forth...
other examples:
240 F0
225 FF
To convert from hexadecimal to decimal, multiply the decimal number in the largest placeholder by the placeholders postion X, where X is 16 ^ the placeholder - 1)
ex:
F7A23 = X in decimal form
F = 15 //placeholder = 5 - 1 = 4
F0000 = 15 * 16 ^ 4
F0000 = 983040
7 = 7 //placeholder = 4 - 1 = 3
7000 = 7 * 16 ^ 3
7000 = 28672
A = 10 //placeholder = 3 - 1 = 2
A = 10 * 16 ^ 2
A = 2560
2 = 2 //placeholder = 2 - 1 = 1
2 = 10 * 16
2 = 160
3 = 3 //placeholder = 1 - 1 = 0
3 = 3 * 16 ^ 0
3 = 3
Thus
F7A23 = 983040 + 28672 + 2560 + 160 + 3
F7A23 = 1014435
Now to unconvert we do divison on powers of 16, starting with the highest first.
Ex:
192349223 // Methinks it might be 6
16 ^ 6 = 16777216
192349223 mod 16777216 = 11 Remainder 7799847
/// 7th diget is B as 11 = B
16 ^ 5 = 1048576
7799847 mod 1048576 = 7 Remainder 459815
/// 6th diget is 7
16 ^ 4 = 65536
459815 mod 65536 = 7 Remainder 1063
/// 5th diget is 7
16 ^ 3 = 4096
/// as it's bigger than 1069, we skip this step
/// and know 4th diget is 0
16 ^ 2 = 256
1063 mod 256 = 4 Remainder 39
/// 3rd diget is 4
16 ^ 1 = 16
39 mod 16 = 2 Remainder 7
/// 2nd diget is 2
16 ^ 0 = 1
7 mod 1 = 7
/// First diget is 7
B + 7 + 7 + 0 + 4 + 2 + 7 = B770427
B770427 = 192349223
Any Questions?
Just E-Mail me at Chrispy1000000NO@SPAMhotmail.com ( take out NO and SPAM) or just check my user page for IM contacts.
Hehe.
This got nothing to do with dink, but ok.
Hexadecimal numerals are base 16
ex:
Our numbers (decimal) on right, headecimal on left.
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F
16 10
17 11
and so on and so forth...
other examples:
240 F0
225 FF
To convert from hexadecimal to decimal, multiply the decimal number in the largest placeholder by the placeholders postion X, where X is 16 ^ the placeholder - 1)
ex:
F7A23 = X in decimal form
F = 15 //placeholder = 5 - 1 = 4
F0000 = 15 * 16 ^ 4
F0000 = 983040
7 = 7 //placeholder = 4 - 1 = 3
7000 = 7 * 16 ^ 3
7000 = 28672
A = 10 //placeholder = 3 - 1 = 2
A = 10 * 16 ^ 2
A = 2560
2 = 2 //placeholder = 2 - 1 = 1
2 = 10 * 16
2 = 160
3 = 3 //placeholder = 1 - 1 = 0
3 = 3 * 16 ^ 0
3 = 3
Thus
F7A23 = 983040 + 28672 + 2560 + 160 + 3
F7A23 = 1014435
Now to unconvert we do divison on powers of 16, starting with the highest first.
Ex:
192349223 // Methinks it might be 6
16 ^ 6 = 16777216
192349223 mod 16777216 = 11 Remainder 7799847
/// 7th diget is B as 11 = B
16 ^ 5 = 1048576
7799847 mod 1048576 = 7 Remainder 459815
/// 6th diget is 7
16 ^ 4 = 65536
459815 mod 65536 = 7 Remainder 1063
/// 5th diget is 7
16 ^ 3 = 4096
/// as it's bigger than 1069, we skip this step
/// and know 4th diget is 0
16 ^ 2 = 256
1063 mod 256 = 4 Remainder 39
/// 3rd diget is 4
16 ^ 1 = 16
39 mod 16 = 2 Remainder 7
/// 2nd diget is 2
16 ^ 0 = 1
7 mod 1 = 7
/// First diget is 7
B + 7 + 7 + 0 + 4 + 2 + 7 = B770427
B770427 = 192349223
Any Questions?
Just E-Mail me at Chrispy1000000NO@SPAMhotmail.com ( take out NO and SPAM) or just check my user page for IM contacts.
Hehe.