DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+7 =
Submit