Skip to main content

Function: hexToNumber()

function hexToNumber(hex): number

Converts a hex string to a number.

Parameters

ParameterTypeDescription

hex

0x${string}

The hex string to convert.

Returns

number

The number representation of the input.

Defined

@nilfoundation/niljs/src/encoding/fromHex.ts:28