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

x/web3/types/bignumber.d.ts>BigNumber#valueOf

Deno / TypeScript to Ethereum Connector
Latest
method BigNumber.prototype.valueOf
import { BigNumber } from "https://deno.land/x/web3@v0.11.1/types/bignumber.d.ts";

As toString, but does not accept a base argument and includes the minus sign for negative zero.

``ts x = new BigNumber('-0') x.toString() // '0' x.valueOf() // '-0' y = new BigNumber('1.777e+457') y.valueOf() // '1.777e+457'

Returns

string