I'd like to overcome an issue with Decimal that i am encountering while migrating from python 2 to 3.
Python 2.7:
>>> Decimal('333').quantize(Decimal('.01'), rounding=decimal.ROUND_HALF_DOWN)
Decimal('333.00')
Python 3.7:
>>> Decimal('333').quantize(Decimal('.01'), rounding=decimal.ROUND_HALF_DOWN)
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]
As the exemple show, there is a behavior change between those python version.
Did i miss something there ?
Any insight welcomed.