Releases: bpierre/dnum
Releases · bpierre/dnum
1.8.0
This release adds the following functions:
abs()
: equivalent toMath.abs()
.equal()
: equivalent to the==
operator.lessThan()
: equivalent to the<
operator.greaterThan()
: equivalent to the>
operator.equalizeDecimals()
: equalize the decimals of the passedDnum
values.
1.7.0
1.6.0
Add toNumber()
.
This version also improves format()
, which doesn’t rely on Intl.NumberFormat
anymore which removes the precision limits that were coming from it.
1.5.1
1.5.0
1.4.2
Avoid using the ??=
operator because Bundlephobia doesn’t support it.
1.4.1
Avoid using **
on BigInt to circumvent a CodeSandbox issue.