Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util/hex/toNumber.ts>hexToNumber

Package publishing for deno.land/x/polkadot
Go to Latest
function hexToNumber
import { hexToNumber } from "https://deno.land/x/polkadot@0.2.17/util/hex/toNumber.ts";

Examples

import { hexToNumber } from 'https://deno.land/x/polkadot@0.2.17/util/mod.ts';

hexToNumber('0x1234'); // => 0x1234

Parameters

optional
value: string | null

Returns

number