System.Xml.XmlConvert.IsNegativeZero C# (CSharp) Méthode

IsNegativeZero() static private méthode

static private IsNegativeZero ( double value ) : bool
value double
Résultat bool
        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;
        }