Improve comparison of fractions

Fraction comparison does not work for 143.999985 and 2.000001.
This CL resolves this corner case.

Bug: 140778647
Test: pass CTS
Change-Id: I7e39ba822167a3c36c628255a4c79b1ade976929
(cherry picked from commit 019adb02932a889ebd200a1de8b8c4780b1477dc)
1 file changed