forked from CGM_Public/pretix_original
Fixed #119 -- Explicitly set decimal rounding mode
This commit is contained in:
5
src/pretix/base/decimal.py
Normal file
5
src/pretix/base/decimal.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from decimal import ROUND_HALF_UP, Decimal
|
||||
|
||||
|
||||
def round_decimal(dec):
|
||||
return Decimal(dec).quantize(Decimal('0.01'), ROUND_HALF_UP)
|
||||
Reference in New Issue
Block a user