numpy.base_repr(number, base=2, padding=0) [source]
Return a string representation of a number in the given base system.
| Parameters: | 
 | 
|---|---|
| Returns: | 
 | 
See also
binary_repr
base_repr for base 2.>>> np.base_repr(5) '101' >>> np.base_repr(6, 5) '11' >>> np.base_repr(7, base=5, padding=3) '00012'
>>> np.base_repr(10, base=16) 'A' >>> np.base_repr(32, base=16) '20'
    © 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
    https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.base_repr.html