import { BigNumber } from "https://deno.land/x/web3@v0.11.1/types/bignumber.d.ts";
Configures the settings that apply to this BigNumber constructor.
The configuration object, object
, contains any number of the properties shown in the example
below.
Returns an object with the above properties and their current values.
Throws if object
is not an object, or if an invalid value is assigned to one or more of the
properties.
BigNumber.set({
DECIMAL_PLACES: 40,
ROUNDING_MODE: BigNumber.ROUND_HALF_CEIL,
EXPONENTIAL_AT: [-10, 20],
RANGE: [-500, 500],
CRYPTO: true,
MODULO_MODE: BigNumber.ROUND_FLOOR,
POW_PRECISION: 80,
FORMAT: {
groupSize: 3,
groupSeparator: ' ',
decimalSeparator: ','
},
ALPHABET: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'
});
BigNumber.set().DECIMAL_PLACES // 40