Problem with python float and frappe, how to handle?

Everyone might know Python has this problem

2000-1780.2 = 219.79999999999995

And this effect some of the logic when we try to compare two numbers.

I do have this problem in HR and discuss change and propose to fix here, which I think round number before might be it.

But I still wondering what is the best way to handle this kind of problem in Frappe.

Thank you