Back to Numerical Arrays (NumPy)
np.hexRepr
Return the hexadecimal representation of a number.
Syntax
np.hexRepr(num, width?)
Description
Return the hexadecimal representation of a number.
Parameters
| Name | Description |
|---|---|
| num | - Integer to convert |
| width(optional) | - Minimum number of hex digits |
Returns
string