Back to Numerical Arrays (NumPy)
np.binaryRepr
Base Conversion Functions
Syntax
np.binaryRepr(num, width?)
Description
Base Conversion Functions Functions for converting numbers to binary and arbitrary base representations. Reference: numpy/_core/numeric.py (binary_repr, base_repr)
Parameters
| Name | Description |
|---|---|
| num | - Integer to convert |
| width(optional) | - Fixed width for two's complement representation |
Returns
string