Skip to content

v0.6.0

Choose a tag to compare

@neogenie neogenie released this 15 Aug 20:19
· 21 commits to master since this release

Breaking changes

  • Removed previously deprecated Decimal methods:
    • from_scale (use quantum instead).
    • normalized (use reduce instead).
    • with_scale (use rescale instead).

Added

  • Decimal truncation API (#39):
    • Decimal::trunc() — truncates to integral with no fractional portion without rounding.
    • Decimal::trunc_with_scale(scale) — truncates to the specified scale without rounding.

Changed

  • Internal documentation macro routing for decimal type aliases refined (no public API impact).

Documentation

  • Minor fixes.
  • Added a dedicated “Truncate” section with behavior details and examples.

Internal

  • Introduced an internal truncation implementation integrated with scaling and extra-precision handling to ensure true
    truncation semantics (no rounding).