Skip to content

Releases: MaterializeInc/rust-dec

dec-0.4.9

11 Nov 16:35
bfcf645
Compare
Choose a tag to compare
dec 0.4.9

dec 0.4.7

15 Jan 13:19
Compare
Choose a tag to compare

Refactor from_raw_parts and to_raw_parts again to use [u16; N] rather
than &[u16] to represent Decimal's lsu. This makes from_raw_parts
cheaper because the lsu length does not need validation.

dec 0.4.6

14 Jan 20:20
Compare
Choose a tag to compare

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.

dec 0.4.5

29 Jul 16:23
Compare
Choose a tag to compare

Change TryFrom<Decimal> for T where T are primitive integers; no longer requires an exponent of 0.

dec 0.4.4

25 Jun 13:44
Compare
Choose a tag to compare
dec-0.4.4

dec 0.4.4

dec 0.4.3

18 Jun 22:04
Compare
Choose a tag to compare
  • Genericizes Decimal operations to allow interoperation of multiple widths/precisions.
  • Other quality of life improvements.

dec 0.4.2

07 Jun 14:19
Compare
Choose a tag to compare
dec-0.4.2

dec 0.4.2

dec 0.4.1

03 Jun 23:27
Compare
Choose a tag to compare

Expanded functionality for Decimal type

dec 0.4.0

20 May 16:09
Compare
Choose a tag to compare

Extends functionality of Decimal type.

dec-0.3.0

11 Feb 15:29
Compare
Choose a tag to compare
dec 0.3.0