Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Jan 6, 2018
1 parent 07c598c commit 93cd9da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ This is the changelog for Money v1.1.1 released on January 6th, 2018. For older

## Enhancements

* Add `Money.to_integer_exp` to convert the `Money` into a tuple of the integer (coefficient) and exponent. This is useful for services that require money to be presented in an integer format.
* Add `Money.to_integer_exp` to convert the `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

Expand Down

0 comments on commit 93cd9da

Please sign in to comment.