Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qu.ai/llms.txt

Use this file to discover all available pages before exploring further.

function toNumber(value): number
Converts value to a number. If value is a Uint8Array, it is treated as Big Endian data. Throws if the value is not safe.

Parameters

ParameterTypeDescription
valueUint8Array | BigNumberishThe value to convert.

Returns

number The value.

Throws

If the value is not safe to convert to a number.

Source

utils/maths.ts:243