https://docs.python.org/3/library/decimal.html documentation issue
21 May
2019
21 May
'19
1:49 p.m.
my python version is 3.7, running in Pycharm. on the doc page there is:
Decimal('7.325').quantize(Decimal('.01'), rounding=ROUND_DOWN)
but "name 'ROUND_DOWN' is not defined" This worked though :)
Decimal('7.325').quantize(Decimal('.01'), rounding='ROUND_DOWN')
Sam
1793
Age (days ago)
1793
Last active (days ago)
1 comments
2 participants
participants (2)
-
Julien Palard
-
Sam Towers