Symbol
references.var
to export BigNumber
.{s, e, c}
.isBigNumber
: if BigNumber.DEBUG
is true
, also check that the BigNumber instance is well-formed.instanceof
checks; just use _isBigNumber
to identify a BigNumber instance._isBigNumber
to prototype in bignumber.mjs.toPrecision
without argument should follow toString
.toString(10)
.BigNumber.sum
method.toFormat
: add prefix
and suffix
options.toFormat
.toFraction
: return array of BigNumbers not strings.valueOf
to prevent accidental addition to string.crypto
requirement to documentation.util.inspect.custom
for Node.js REPL.isBigNumber
a type guard in bignumber.d.ts.BigNumber.min
and BigNumber.max
: don't accept an array.browser
field to package.json.main
field in package.json.module
field to package.json for bignumber.mjs.Object.freeze(Object.prototype)
.BigNumber.DEBUG
is true
.BigNumber.DEBUG
is true
. Return BigNumber NaN
instead.exponentiatedBy
: allow BigNumber exponent.toFraction
: allow Infinity
maximum denominator.APLHABET
configuration option.ERRORS
configuration option.toDigits
method; extend precision
method accordingly.round
method; extend decimalPlaces
method accordingly.ceil
, floor
, and truncated
.add
, cmp
, isInt
, isNeg
, trunc
, mul
, neg
and sub
.shift
to shiftedBy
, another
to clone
, toPower
to exponentiatedBy
, and equals
to isEqualTo
.is
prefix to greaterThan
, greaterThanOrEqualTo
, lessThan
and lessThanOrEqualTo
.multipliedBy
, isBigNumber
, isPositive
, integerValue
, maximum
and minimum
.new
.isBigNumber
tests.isBigNumber
method.ERRORS
after a BigNumber.another
call (due to parseNumeric
declaration in outer scope).require('crypto')
- leave it to the user.BigNumber.set
as BigNumber.config
alias.POW_PRECISION
to 0
.toPower
.window.crypto
not assigned to crypto
.crypto
shim.valueOf
and toJSON
, include the minus sign with negative zero.max
, min
, precision
, random
, shiftedBy
, toDigits
and truncated
methods.add
, mul
, sd
, sub
and trunc
.another
method to enable multiple independent constructors to be created.0b
, 0o
and 0x
.toExponential
, toFixed
, toFormat
and toPrecision
.CRYPTO
configuration property so cryptographically-secure pseudo-random number generation can be specified.MODULO_MODE
configuration property to enable the rounding mode used by the modulo
operation to be specified.POW_PRECISION
configuration property to enable the number of significant digits calculated by the power operation to be limited.dividedToIntegerBy
, isInteger
and toFormat
methods.isF
, isZ
, toE
, toF
, toFr
, toN
, toP
, toS
.toJSON
and decimalPlaces
methods.toNumber
.sqrt
in all, rather than almost all, cases.