Created
April 1, 2019 16:31
-
-
Save jacoby/764bb4e8a5d3a819b5fbfa497fcb3454 to your computer and use it in GitHub Desktop.
What is Base35?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let's start with octal. That's base8. | |
You'd count it 0,1,2,3,4,5,6,7,10,11,12... | |
There's only the digits 0 thru 7 , and when you get to 8, that's 10. | |
So, if you have 12 in octal, that's (1*8) + 2, which is 10 in decimal. | |
And, 100 in octal would be 1*(8 squared), or 64 decimal. | |
Let's double base8 to base16, which we call hexidecimal. | |
Starting from 8, we go 9,A,B,C,D,E,F,10,11, etc. We use alphabetical characters because we've maxed out on numerical. | |
And 12 in hexidecimal would be (1 * 16 ) + ( 2 * 1 ). | |
[Implementation hint: x^0 == 1] | |
So, going to base35 gets you almost to the end of the alphabet before flipping over to 10. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment