0

I'm using django-money for all currency fields in an app I'm building. According to the documentation the default CURRENCY_DECIMAL_PLACES is 2, and I am explicitly calling it in my settings.py file as well. However, when I am checking a remaining balance on an order it is returning a Money object, but showing all the decimal places instead of just 2.

In [2]: order.remaining_balance
Out[2]: Money('0.002500000000', 'USD')

Is there a reason it isn't restricting it to only the 2 decimal places that I am wanting? In the templates it is only showing two decimal places, but in my views.py file or the shell it renders the full decimal places.

I've set the CURRENCY_DECIMAL_PLACES to 2, but I'm getting back more than 2 decimal places.

0 Answers0