Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print 2 decimal places

# this will print up to digits after decimal
print("%.2f" % (70/105))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #decimal #places
ADD COMMENT
Topic
Name
9+7 =