>>> s = str(Decimal('1500'))
>>> print s.rstrip('0').rstrip('.') if '.' in s else s
1500
def remove_exponent(num):
return num.to_integral() if num == num.to_integral() else num.normalize()
var = round(var, 1) #the first value is the number or var
#to round, the second is what desimal to round to