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
How Can I get the same result.
Unless the math library on OS X uses the very same implementation/algorithm for calculating e ^ x, you won't and can't really get exactly the same results. Floating-point calculations aren't exact, deal with it.
e ^ x