Ex Money version 5.20.0
Soft Deprecation
- The option
:fractional_digitsforMoney.from_integer/3has been deprecated in favour of:currency_digitsfor consistency withMoney.round/2and functions in ex_cldr_numbers.:fractional_digitswill continue to be supported for an indefinite period.
Bug Fixes
-
Ensure
Money.split/3always returns a remainder that is greater than or equal to 0. Thanks to @jdewar for the report and @coladarci, @Wigny for their collaboration. Closes #173. -
Allow a non-breaking-space to be part of a number string. Some locales (like
en-ZA) will format numbers with a nbsp when using standard separators for that locale. -
Fix documentation for
Money.ExchangeRatesreplacing:exchange_rate_servicewith:auto_start_exchange_rate_service. Thanks to @cw789 for the PR. Closes #174.
Enhancements
-
Update to CLDR 47 data including update to ISO 4217 currency information.
-
Support passing rounding options to
Money.split/3.