Decimal.clamp
method.Decimal.sum
method.Symbol.for
to Symbol['for']
for IE8.minE
is very low.sqrt
initial estimate.Math.pow
change.+
prefix when parsing string values.Symbol
properly.util.inspect()
function.Symbol.toStringTag
.browser
field to package.json.toNearest
to return the nearest multiple in the direction of the rounding mode.const
to var
.toFormat
.toFraction
returns Decimal[]
.Decimal.isDecimal
method.defaults: true
.global.crypto
.import
issues.pow
sometimes throws when result is Infinity
.Number.MAX_SAFE_INTEGER
.Decimal.default
to Decimal['default']
IE8 issuerequire('crypto')
- leave it to the userDecimal.crypto
to false
Decimal.set
as Decimal.config
aliastoJSON
and removed Decimal.fromJSON
accordinglycubeRoot
methodMath
object methods as Decimal methodstoBinary
, toHexadecimal
and toOctal
methodsisPositive
methodtoFraction
now returns an array of two Decimals, not two stringsvalueOf
now returns '-0'
for minus zerocomparedTo
now returns NaN
not null
for comparisons with NaN
Decimal.max
and Decimal.min
no longer accept an arraytoString
no longer accept a base argumentDecimal.errors
configuration propertytoFormat
methodDecimal.ONE
exponential
method to naturalExponential
Decimal.constructor
method to Decimal.clone
Decimal.crypto
is now undefined
by default, and the crypto
object will be used if availabletoFormat
amended to use Decimal.format
object for more flexible configurationrandom
simplified. Major internal changes mean the properties of a Decimal must now be considered read-onlytoSignificantDigits
toInteger
ceil
, floor
, round
and trunc