Ex_Money v3.3.0 Release Notes
-
๐ This is the changelog for Money v3.3.0 released on February 24th, 2019. For older changelogs please consult the release tag on GitHub
โจ Enhancements
- โ Adds
Money.put_fraction/2
. This will set the fractional part of a money to the specified integer amount. Examples: ``` iex> Money.put_fraction Money.new(:USD, "2.49"), 99 #Money<:USD, 2.99>
iex> Money.put_fraction Money.new(:USD, "2.49"), 999 {:error, {Money.InvalidAmountError, "Rounding up to 999 is invalid for currency :USD"}}
### ๐ Bug Fixes * ๐ Parsing money strings now uses a more complete set of character definitions for decimal and grouping separators based upon the `characters.json` file of the "en" locale.
- โ Adds