Skip to content

Ex Money version 5.20.0

Choose a tag to compare

@kipcole9 kipcole9 released this 18 Mar 21:16
· 67 commits to main since this release

Soft Deprecation

  • The option :fractional_digits for Money.from_integer/3 has been deprecated in favour of :currency_digits for consistency with Money.round/2 and functions in ex_cldr_numbers. :fractional_digits will continue to be supported for an indefinite period.

Bug Fixes

  • Ensure Money.split/3 always 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.ExchangeRates replacing :exchange_rate_service with :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.