Duodecimal
Examples for numeral systems with different bases are
- Base 2 – Binary: The cornerstone for computer systems.
- Base 8 – Octal: ...
- Base 10 – Decimal: In everyday life, Decimal is the dominant number system.
- Base 12 – Duodecimal: The topic of this post.
- Base 16 – Hexadecimal: Is used to describe colors.
In the case of duodecimal, the additional characters are ↊ (or X) and ↋ (or E).
Base 2 | 1 | 10 | 11 | 100 | 101 | 110 | 111 | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 | 10000 | |
Base 8 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | |
Base 10 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | |
Base 12 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ↊ | ↋ | 10 | 11 | 12 | 13 | 14 | |
Base 16 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | 10 |
The code can be found on GitHub