Is there any logic behind ASCII codes’ ordering?
There are historical reasons, mainly to make ASCII codes easy to convert: Digits (0x30 to 0x39) have the binary prefix 110000: 0 is 110000 1 is 110001 2 is 110010 etc. So if you wipe out the prefix (the first two ‘1’s), you end up with the digit in binary coded decimal. Capital letters have … Read more