python limit float to 2 decimal places

24

answer = str(round(answer, 2))

Comments

Submit
0 Comments