value to a number. If value is a Uint8Array, it is treated as Big Endian data. Throws if the value is
not safe.
Parameters
Returns
number
The value.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function toNumber(value): number
value to a number. If value is a Uint8Array, it is treated as Big Endian data. Throws if the value is
not safe.
| Parameter | Type | Description |
|---|---|---|
value | Uint8Array | BigNumberish | The value to convert. |
number
The value.
Was this page helpful?
