Integer#
- class basencode.Integer(n: Union[int, float, str, Tuple[Union[int, str]], List[Union[int, str]]], base: int = 10, digits: Optional[List[str]] = None)#
Bases:
_NumberThe
Integerclass, a child of_Number, for whole numbers- Parameters:
n – The number to be converted to decimal and stored
base – The base in which the number provided is represented (this information is used to convert the number to decimal)
digits – The digits used in the provided representation of the number