Last updated 3 months ago
We can limit floating points to two decimals in Python as -
Source:
>>> "{:.2f}".format(3.145678912345) '3.15'