Answers for "round off a number in python"

1

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
Posted by: Guest on July-06-2021
0

how to round a number up in python

>>> import math

>>> math.ceil(3.2) # round up
4
Posted by: Guest on December-03-2020

Code answers related to "round off a number in python"

Python Answers by Framework

Browse Popular Code Answers by Language