Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

round python print

#round print
process = 1345 * 0.75

print(f"The result can be shown as {round(process, 1)}")  #output:1008.8
print(f"The result can be shown as {round(process, 2)}")  #output:1008.75
 
PREVIOUS NEXT
Tagged: #python #print
ADD COMMENT
Topic
Name
3+4 =