safe-decimal v0.2.0 Release Notes
-
- โ 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
- โ Add