On Sat, Jan 31, 2009 at 11:02 PM, Robert Rohde rarohde@gmail.com wrote:
In r46671 I have added an explicit test for floating point numbers that are within 1 part in 10^10 of integers before performing round-off sensitive conversions and comparisons.
This should eliminate these errors in many cases.
But it causes other errors:
{{#expr:1e-11 = 2e-11}}
This is now (wrongly) true, while before your commit it was false. In the old way, at least users could work around the problem in the same way that programmers do: by explicit testing like
{{#expr:0.00007 * 10000000 - 700 < 1e-10}}
Now I don't think there's any way to get correct results in cases where small numbers are entered manually. Plus, it doesn't help stuff like
{{#expr:0.00000007 * 10000000 = 0.7}}
which still gives wrong results.