Skip to content

v0.4.4

Compare
Choose a tag to compare
@akubera akubera released this 15 Jun 14:45
· 97 commits to trunk since this release

Changes

  • Revert formatting semantics to match Rust's meanings rather than Python's
    • The meaning of the formatting string "{:.4}" has returned to "4 digits after decimal place" rather than "four digits of precision"
  • Add new compile-time parameters for safer formatting
    • Configurable thresholds prevent printing out full decimal form of large numbers, like 1e999999999999999 (could be used in)
  • Improved JSON serialization / formatting routines

Note

Please add your own tests to ensure this library formats (and continues to format) numbers as you expect

  • Added methods

    • BigDecimalRef::clone_into
    • BigDecimal::set_scale (mutable version of take_and_scale)
  • Optimized bigdecimal comparison algorithms

  • Restricted versions of num-* crates to respect Minimum Supported Rust Version (1.43)

    • I may raise this up soon