Module

x/polkadot/util/bn/index.ts>bnSqrt

Package publishing for deno.land/x/polkadot
Go to Latest
function bnSqrt
import { bnSqrt } from "https://dotland.deno.dev/x/polkadot@0.2.35/util/bn/index.ts";

Examples

import BN from 'https://esm.sh/bn.js@5.2.1';
import { bnSqrt } from 'https://deno.land/x/polkadot@0.2.35/util/mod.ts';

bnSqrt(new BN(16)).toString(); // => '4'

Type Parameters

ExtToBn extends ToBn

Parameters

value:
| BN
| bigint
| string
| number
| null