Strange error when using “Double.NaN” and “double.MaxValue” in c#
问题 I have a function in my code like (C#, NET 3.5, Visual Studio 2008): public double function CalculateSomething() { ... double a = double.NaN; // Or double.MaxValue, with same behaviour ... } This function is called by the main class, like this: ... double res = o.CalculateSomething(); ... Although it looks like incredible (for me, it is) and ONLY on certain computers (only in 2 computers from 60) without anything special (WinXP SP3), if I use the "alias" (double.NaN or double.MaxValue) the