bytesize._radix module
Class for handling numbers in various bases.
-
class bytesize._radix.BaseInteger(sign, value, base)
Bases: object
An integer encoded as a list of ints and a base.
-
convertTo(base)
Convert to designated base.
Parameters: | base (int) – the designated base (> than 1) |
Returns: | converted value |
Return type: | BaseInt |
-
class bytesize._radix.RadixNumber(left, right, repeat_length, base, sign=True)
Bases: object
Class for instantiating RadixNumber objects.
This class is just another way of representing rationl numbers
and should be interconvertible with Fraction.