Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

2 numbers after comma python

num = 0.4826752452832

print(round(num,2)) #in this case we want 2 numbers after the comma

# terminal :
# 0.48
Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #numbers #comma #python
ADD COMMENT
Topic
Name
5+1 =