Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove trailing zeros python

var = round(var, 1) #the first value is the number or var 
#to round, the second is what desimal to round to
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #trailing #zeros #python
ADD COMMENT
Topic
Name
8+2 =