drop-trailing-nol-from-need Python
>>> s = str(Decimal('1500'))
>>> print s.rstrip('0').rstrip('.') if '.' in s else s
1500
Busy Boar
>>> s = str(Decimal('1500'))
>>> print s.rstrip('0').rstrip('.') if '.' in s else s
1500
a = 3.14
b = 1.86
c = a + b
d = int(c)
print(d)