currency_formatter
currency_formatter copied to clipboard
An Elixir function to format a number to a currency using ISO standards
This PR fixes some errors in type specifications.
A bug was exposed in use of currency_formatter when formatting 3-decimal currencies. Changes methods to use the subunit_to_unit value of the currency instead of assuming 2 decimal places.
I'm trying to update poison to version 4 in my app, but I can't because it dependes on currency_formater, which dependes on poison 3.1. Can I open a PR updating...
- flatten lists to a format which latest `Phoenix.HTML.safe_to_string/1` can accept (`{:safe, iodata}`) - update README - minor version bump to indicate breaking change with older versions of phoenix_html
add backwards compatible and non_iso currencies from https://github.com/RubyMoney/money/tree/master/config
There are some compilation warnings: ``` $ asdf current elixir elixir 1.18.2-otp-27 $ asdf current erlang erlang 27.1.2 ``` ``` mix compile ==> currency_formatter Compiling 1 file (.ex) warning: incompatible...
Hoping to avoid package conflicts by updating poison.