relaxed ADV_WANT_EQ
The ADV_WANT_EQ may be too strict by comparing diff to 0.000001 (remember there are int overflows, so values may be huge)
This patch implement relative comparison |x-y| < epsilon * (|x| + |y|) , with epsilon =0.001 which is enough , and works also for big numbers.
see #47901
Patch didn't apply cleanly to S3_0. Attached version that does.
The ADV_WANT_EQ may be too strict by comparing diff to 0.000001 (remember there are int overflows, so values may be huge)
This patch implement relative comparison |x-y| < epsilon * (|x| + |y|) , with epsilon =0.001 which is enough , and works also for big numbers.