Conversion between mixed radix representations
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} + (6×1 + 3×10)×3^{2}×5^{3} = 40988 (in radix 10).
Each radix must be a number between 2 and 36. Figures in radix 36 are 0_{36}, 1_{36}, 2_{36}, …, 9_{36}, a_{36}, b_{36}, c_{36}, …, z_{36} . You can also use upper cases.
- … 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 2p_30:42_6:41:44_5:0101_2 is a representation 2p_{30}:42_{6}:41_{10}:44_{5}:0101_{2} of 123456789 (in radix 10).
Links
- 🔗 Link to this application, with current values:
- The JavaScript source file used by this application: mixed-radix.js
- Notation used in Base (arithmétique) : Conversion d’une base à une autre (Wikipédia)
- MixedRadix (Wolfram Language & System Documentation Center )
- Online tool Tables Generator
🚧 Todo 🚧
- Split JavaScript file and develop a library, maybe in Kotlin
- computation with operator + - * / % ^…
- "buttons" to shift figures