Fabian Homborg 5872f4522d math: Add --base option
Currently a bit limited, unfortunately printf's `%a` specifier is
absolutely unreadable.

So we add `hex` and `octal` with `0x` and `0` prefixes respectively,
and also take a number but currently only allow 16 and 8.

The output is truncated to integer, so scale values other than 0 are
invalid and 0 is implied.

The docs mention this may change.
2020-11-27 19:33:27 +01:00
..
2020-11-27 19:33:27 +01:00
2020-11-13 15:12:14 +01:00
2020-11-15 09:17:23 +01:00
2020-11-15 09:17:23 +01:00