I got a code here, and when I run them on Win and Mac OS, the precision of the results is different, anyone can help?
const double c = 1 - exp(-2.0);
double x = (139 + 0.5) / 2282.0;
x = ( 1 - exp(-2 * (1 - x))) / c;
The results are both 0.979645005277687, but the Hex are different:
Win: 3FEF59407B6B6FF1
Mac: 3FEF59407B6B6FF2
How Can I get the same result.