This commit is contained in:
François Poulain 2024-10-10 19:29:21 +02:00
parent b1223c40c5
commit 84ca038bdc

View File

@ -2,6 +2,8 @@ from decimal import Decimal
def clean(d):
if type(d) == int:
return d
if d == d.to_integral():
return d.quantize(Decimal(1))
else: