decimal.js
Advanced tools
Changelog
5.0.0
cubeRoot
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 available