hex
consthex: (x:number) =>string=builtins.hex
Defined in: packages/pythonlib/src/index.ts:174
Convert an integer to a lowercase hexadecimal string prefixed with “0x”.
Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | The integer to convert |
Returns
string
Hexadecimal string (e.g., “0xff”)