For limiting floats to two decimal points you can use the simplest approach which is to use the format() function.
An example is as follows:
a = 13.949999999999999
format(a, '.2f')
13.95
The above code will produce a float number as a string rounded to two decimal points.
You can use the following video tutorials to clear all your doubts:-