I have a .Net class library that calculates following
double d1 = 114585.8713458709;
double d2 = 3992.809280799137;
double d3 = 563.12764243145182;
d1 += d2 - d3;
return d1.ToString("R");
When I call from .Net console, I get value 118015.55298423857 When I call from excel VBA using interop I get value 118015.55298423859
The value differs by 0.00000000002. What can be the reason for different behavior by same method?