For abyssal modification range, show integer + 3 fraction digits, like CCP does

This commit is contained in:
DarkPhoenix
2018-11-19 14:59:34 +03:00
parent b0895611d6
commit dc2a4d4446
3 changed files with 20 additions and 10 deletions

View File

@@ -110,3 +110,9 @@ def roundToPrec(val, prec):
if int(val) == val:
val = int(val)
return val
def roundDec(val, prec):
if int(val) == val:
return int(val)
return round(val, prec)