Search
 
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
Name
6+7 =