PW-567 add the old canvas formula

This commit is contained in:
Martin
2016-10-31 17:57:11 +01:00
parent cbee61b564
commit bf9fc3ae5a
10 changed files with 352 additions and 35 deletions
+5
View File
@@ -0,0 +1,5 @@
from decimal import Decimal, ROUND_HALF_UP
def round_half_up(val):
return int(Decimal(val).quantize(0, ROUND_HALF_UP))