Skip to content

dec 0.4.6

Compare
Choose a tag to compare
@sploiselle sploiselle released this 14 Jan 20:20
· 12 commits to master since this release

0.4.6 - 2022-01-14

  • Add functions to take Decimal values to and from packed binary-coded
    decimals
    using the
    decPacked module.

  • Add round_to_place and reduce_to_place to Decimal<N>, which provide
    "places from the left" rounding, akin to a shift right, round, and shift
    left. reduce_to_place performs the operation, as expected, and
    simultaneously performs a reduce.

  • Refactor to_raw_parts and to_raw_parts to use &[u16] to represent a
    Decimal's lsu, largely reverting the change from
    0.4.2.

    The reversion addresses an oversight that would corrupt values if the LSU's
    data was moved between machines with different endianness.