Other Useful Functions - mattl1598/Project-Mochachino GitHub Wiki

Functions I've found to be useful

Numpy

binary_repr()

binary_repr(num, width)

Docstring:

Return the binary representation of the input number as a string.

For negative numbers, if width is not given, a - sign is added to the
front. If width is given, the two's complement of the number is
returned, with respect to that width.