I need to round down and it should be two decimal places. Tried the following,
a = 28.266 print round(a, 2)
28.27 <
28.27
simply try this:
import math a = 28.266 print((math.floor(a * 100)) / 100.0)
Output:
28.26