Skip to content

Money version 5.15.0

Compare
Choose a tag to compare
@kipcole9 kipcole9 released this 24 Jul 00:20

Enhancements

  • Adds an option :no_fraction_if_integer to Money.to_string/2. If truthy this option will set fractional_digits: 0 if money is an integer value. This may be helpful in cases where integer money amounts such as Money.new(:USD, 1234) should be formatted as $1,234 rather than $1,234.00.