In standard C++ the double values for 1. + 1.2*^-16 and 1. are not considered equal. But in Mathematica, I get the following:
With[{aux = 1 + 1.2*^-16},
{{1 == aux, 1. == aux}, {1 < aux, 1. < aux}, {ArcSin[aux], ArcSin[1.]}}]
returns
{{True, True}, {False, False}, {1.5708 - 2.10734*10^-8 I, 1.5708}}
Is there a parameter that I can set, to get the behaviour as in C++, i.e. strict floating point equality?
3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – Feb 28 '16 at 13:42