DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+6 =
Submit