DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python write float with 2 decimals
import math radius = 5 area = math.pi * radius * radius print("Area = %.2f" % area)
Source by java2blog.com #
PREVIOUS
NEXT
Tagged:
#python
#write
#float
#decimals
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit