Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python decimal remove trailing zero

def remove_exponent(num):
    return num.to_integral() if num == num.to_integral() else num.normalize()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #decimal #remove #trailing
ADD COMMENT
Topic
Name
3+5 =