Changelog for safe-decimal-0.2.1.0
Changelog for safe-decimal
0.2.1
- Add
arithError
- Add
RoundHalfToZero
andRoundHalfFromZero
rounding strategies. - Conversion from
Scientific
normalizes the input and is more resilient to unbounded computation for boundedDecimal
result.
0.2.0
- Add
Arith
monad and corresponding functions. - Make rounding dependent on precision type (extra type argument to the
Round
type class) - Rename
RoundFloor
toRoundDown
(withFloor
as synonym) - Rename
Truncate
toRoundToZero
(withTruncate
as synonym) - Fix conversion
fromRational
to throwUnderflow
instead of rounding. Without this fix there was unexpected behavior on negative numbers. - Addition of
scaleUp
andscaleUpBounded
- Addition of
toFixedDecimal
,fromFixedDecimal
andfromFixedDecimalBounded
- Many function renames, just to make sure they all follow the same convention.
- Fix
RoundHalfUp
algorithm - Addition of
RoundHalfDown
andRoundHalfEven
0.1.0
Initial release