Conversion between mixed radix representations
_{10}
= _{16}
= _{10}:_{2}:_{3}
= _{10}:_{3}:_{2}
= _{6}
= _{2}
= _{3}
First /6 combinations …_{2}:…_{3} with : figures
Some explanations
Something as this 4752_{8} is a representation in radix (base) 8 of the number 2×1 + 5×8 + 7×8^{2} + 4×8^{3} = 2538 (represented in radix 10).
Mixed radices as 36_{10}:204_{5}:02_{3} is a representation of the number 2×1 + 0×3 + (4×1 + 0×5 + 2×5^{2})×3^{2} + 36×3^{2}×5^{3} = 40988.
Each radix must be a number between 2 and 36. Figures in radix 36 are 0123456789abcdefghijklmnopqrstuvwxyz_{36}. You can also use upper cases.
Set a number in one input box (in the silver frame) in the corresponding radix
and all representations will be updated.
- …_{10} represent the number, always in radix 10.
- …_{16} represent the number in a given radix.
- …_{10}:…_{2}:…_{3} represent the number split in 3 parts: remain:second part:first part
- …_{10}:…_{3}:…_{2} represent the number split in 3 parts, with first and second parts swapped.
- …_{6} represent the number in a radix computed from a combination of radices used by first and second parts. If one of these radices is divisible by the other then get the product of them, else get the least common multiple of them. In both cases with a maximum of 36.
- …_{2} represent the number in radix used by second part.
- …_{3} represent the number in radix used by first part.
- In the largest input box you can enter general mixed radix representation. (All not valid characters are ignored or deleted, then all not valid parts are also ignored or deleted.) For example is a representation 2p_{30}:42_{6}:41_{10}:44_{5}:0101_{2} of 123456789.
Links
- 🔗Link to this application, with current values
- The JavaScript file used by this application: mixed-radix.js
- Notation used in Base (arithmétique) : Conversion d’une base à une autre (Wikipédia)
- Tables Generator
🚧 Todo 🚧
- Split JavaScript file and develop a library, maybe in Kotlin
- computation with operator + - * / % ^…
- historic and undo
- "buttons" to shift figures