Skip to main content
Module

x/polkadot/mod.ts>util.hexToNumber

Package publishing for deno.land/x/polkadot
Go to Latest
function util.hexToNumber
import { util } from "https://deno.land/x/polkadot@0.2.41/mod.ts";
const { hexToNumber } = util;

Examples

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

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

Parameters

optional
value: string | null

Returns

number