base 36 Numbering
Posted: Mon Jul 04, 2005 10:45 pm
I am auto-generating a number system to be stored in the database which increments by one like an auto_increment field. But the twist is, I am including [0-9] and [A-Z] in this number system.
Just like Hex Numbering which gives
But I want to include all remaining letters, [G-Z], which must give...
I tried to modify a function for hex then changing the base number to 36, but It sucks with all the bugs.
Any idea how can I do this perfectly or almost?
Just like Hex Numbering which gives
Code: Select all
00008
00009
00000
0000A
0000B
// .. upto
0000F
00010Code: Select all
0000W
0000X
0000Y
0000Z
00010Any idea how can I do this perfectly or almost?