Packages

Money functions for operations on and localization of a money data type with support for ISO 4217 currencies and ISO 24165 digial tokens (crypto currencies).

Retired package: Deprecated

Current section

Files

Jump to
ex_money CHANGELOG.md
Raw

CHANGELOG.md

# Changelog for Money v1.1.1
This is the changelog for Money v1.1.1 released on January 6th, 2018. For older changelogs please consult the release tag on [GitHub](https://github.com/kipcole9/money/tags)
## Enhancements
* Add `Money.to_integer_exp/1` to convert a `Money` into a tuple of the `{currency_code, integer (coefficient), exponent and remainder}`. This is useful for services that require money to be presented in an integer format.
```
iex> m = Money.new(:USD, 200.012356)
#Money<:USD, 200.012356>
iex> Money.to_integer_exp(m)
{:USD, 20001, -2, Money.new(:USD, 0.002356)}
```
* Format the code using the Elixir code formatter
# Changelog for Money v1.1.0
## Changes & Deprecations
* The configuration option `:exchange_rate_service` is deprecated in favour of `:auto_start_exchange_rate_service` to better reflect the intent of the option. The keyword `:exchange_rate_service` will continue to be supported until `Money` version 2.0.
* The configuration option `:delay_before_first_retrieval` is deprecated and is removed from the configuration struct. Since the option has had no effect since version 0.9 its removal should have no impact on existing code.
* Added [Falsehoods programmers believe about prices](https://gist.github.com/rgs/6509585) topics which give a good summary of the challenges of managing money in an application and how `Money` manages each of them.