I want a to be rounded to 13.95.
a
>>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999
The ro
float_number = 12.234325335563 round(float_number, 2)
This will return;
12.23
round function takes two arguments; Number to be rounded and the number of decimal places to be returned.Here i returned 2 decimal places.