Why do I get platform-specific result for std::exp? [duplicate]
This question already has an answer here: Is floating point math broken? 31 answers Math precision requirements of C and C++ standard 1 answer I have a program that were giving slithly different results under Android and Windows. As I validate the output data against a binary file containign expected result, the difference, even if very small (rounding issue) is annoying and I must find a way to fix it. Here is a sample program: #include <iostream> #include <iomanip> #include <bitset> int main( int argc, char* argv[] ) { // this value was identified as producing different result when used as