Decimal System

The decimal system is a base-10 numbering system that uses digits from 0 to 9.

To convert a number from decimal to another number system base-:

  1. Find and write it down at the rightmost digit.
  2. Floor divide by n such that and repeat.

Then, to reverse the conversion,

where is the length of the string in base-, and is its -th digit.