oct
constoct: (x:number) =>string=builtins.oct
Defined in: packages/pythonlib/src/index.ts:175
Convert an integer to an octal string prefixed with “0o”.
Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | The integer to convert |
Returns
string
Octal string (e.g., “0o17”)