DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
round off to two decimal places python
format(1.4000,'.2f') #to include zeroes while rounding to 2 decimals
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#decimal
#places
#python
ADD COMMENT
Topic
COMMENT
Name
8+8 =
Submit