I'm using Odoo 10 and I have met some rounding issue with calculation using Python. For example: My formula is:
a = 224.689511
b = 195.382186
c = 1000
return round((a - b) * c, 2)
The return value is 29307.32 But the correct value is 29307.33
Value before rounding is 29307.324999999997 but it should be 29307.325
Is there any solution for this kind of case?