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 www.kite.com #
 
PREVIOUS NEXT
Tagged: #python #print #decimal #places
ADD COMMENT
Topic
Name
3+4 =