Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print upto 1 decimal place python

print("{:.1f}".format(number)) # Python3
print "%.1f" % number          # Python2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #upto #decimal #place #python
ADD COMMENT
Topic
Name
4+6 =