Return a string representation of a number in the given base system.
Parameters: | number : scalar
base : int
padding : int, optional
|
---|---|
Returns: | out : str
|
See also
Examples
>>> np.base_repr(3, 5)
'3'
>>> np.base_repr(6, 5)
'11'
>>> np.base_repr(7, 5, padding=3)
'00012'