Dec-19-2021, 05:59 AM
Python lets you throw away resolution.
import math pi = round(math.pi, 2) print(pi)
Output:3.14
Why are you throwing away information? I would keep all the resolution and format the output to show two decimal places.