internal static bool IsNegativeZero(double value) { // Simple equals function will report that -0 is equal to +0, so compare bits instead if (value == 0 && DoubleToInt64Bits(value) == DoubleToInt64Bits(-0e0)) { return true; } return false; }