Money version 5.15.0
Enhancements
- Adds an option
:no_fraction_if_integer
toMoney.to_string/2
. Iftruthy
this option will setfractional_digits: 0
ifmoney
is an integer value. This may be helpful in cases where integer money amounts such asMoney.new(:USD, 1234)
should be formatted as$1,234
rather than$1,234.00
.