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