DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
round off float to 2 decimal places in python
answer = str(round(answer, 2))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#float
#decimal
#places
#python
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit