This converts a base-10 number (decimal) to a base n number. Binary is base 2. This supports negative numbers, and non-integers (often loses precision), but not complex numbers. There are multiple ways to account for digits higher than 9. After 9, I put a lowercase alphabet, then an uppercase alphabet, then a hyphen, and lastly an underscore. To change that, just change the char list.