Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print trailing zeros

# Change the .7 to .n decimal digits including zeros you want to round to:
print('{:.7f}'.format(5.39120))
# >>> '5.3912000'
Source by queirozf.com #
 
PREVIOUS NEXT
Tagged: #python #print #trailing #zeros
ADD COMMENT
Topic
Name
4+9 =