DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
printing with format float to 2 decimal places python
formatted_float = "{:.2f}".format(a_float)
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#printing
#format
#float
#decimal
#places
#python
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit