In our product code we are substracting the two double variables value1 and value2 and the result is compared with EPSILON, its value is 10e-6.as shown below
return ( fabs(value1 - value2) <= EPSILON ) ? true : false;
Now this was working perfectly fine in windows 7(VS 2008). Recently we moved to windows 10(VS 2013) because of this its breaking.After my investigation on this I found out that in windows 10 operation on doubles leads to change in the precision value compared to earlier versions.
TO fix this issue I changed EPSILON to 10e-4. After doing this though this one got fixed but some other code is breaking where i am using EPSILON.
what can I do to fix this problem ? Any help would be much appreciated.