Skip to content

v0.4.3

Latest
Compare
Choose a tag to compare
@akubera akubera released this 17 Mar 23:10
· 17 commits to trunk since this release
  • Use exponential formatting (scientific-notation) if number of leading zeros is greater than 5
    • so 1234e-304 is formatted as 1.234e-301 rather than 0.00.....{300-zeros)....00123
    • Fixes "out of memory errors" when massive amounts of zeros would have been printed
  • Add methods for printing using scientific-notation & engineering-notation
  • Add derived Clone trait to ParseBigDecimalError
  • Preserve scale when adding zero
    • Mimics Python's Decimal behavior:
      >>> Decimal("1.2") + Decimal("0.00000")
      Decimal('1.20000')
  • Minor optimizations removing unnecessary clones in addition and multiplication