bignumber.js
Advanced tools
Changelog
2.0.1
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.Changelog
2.0.0
dividedToIntegerBy
, isInteger
and toFormat
methods.isF
, isZ
, toE
, toF
, toFr
, toN
, toP
, toS
.Changelog
1.3.0
sqrt
in all, rather than almost all, cases.