I need to round down and it should be two decimal places. Tried the following,
a = 28.266 print round(a, 2)
28.27
But the expected value is 28.26 only.
Seems like you need the floor:
floor
import math math.floor(a * 100)/100.0 # 28.26
2.1m questions
2.1m answers
60 comments
57.0k users