vbmacher/kcalc — Issue #5: Allow arbitrary radixes
Author: vbmacher
Created: 2011-12-18 14:12:52+00:00
State: open

Let user to define and use arbitrary radixes, from 2 to 26 (count of alphabet chars). Default ones are ofcourse 2,8,10,16. However, user may experiment with the radixes. Default radixes, as 2,8,10,16 can be represented as it is now, i.e. by special char at the end of the number:

1. Binary: `10101b`
2. Octal: `342567o`
3. Decadic: `123456890d`
4. Hexadecimal: `1234567890ABCx` (the `x` should be `h` in future)

The other radixes should be specified as a number in brackets followed by radix number, i.e.:

* For radix 3 it should be: `(012212)3`
* For radix 25 it should be: `(12348abcdfghjkotxxx)25`
* There should work also default radixes, i.e.: `(10101)2`, `(123456789)10`, `(12377)8`, `(1234ABC)16`