Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@ericelliott ericelliott released this 12 Sep 22:41
· 28 commits to master since this release

Breaking changes:

  • Removed .cent and .$ getters.
  • Removed auto-rounding behaviors. Now MoneySafe will only round if you use .toNumber(), or .toFixed(). .toNumber() will round to 16 digit precision (IEEE 754 Float)
  • Values are no longer represented in cents. .of() and .valueOf() no longer operate in cents.

Improvements:

  • MoneySafe now works for cryptocurrencies with arbitrary precision.
  • MoneySafe now uses BigNumbers internally and is no longer bound by the limitations of the JavaScript Number type.