Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
What is Base35?
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
You can’t perform that action at this time.