Microsoft.Silverlight.Testing.Controls.NumericExtensions.IsZero C# (CSharp) Méthode

IsZero() public static méthode

Check if a number is zero.
public static IsZero ( this value ) : bool
value this The number to check.
Résultat bool
        public static bool IsZero(this double value)
        {
            // We actually consider anything within an order of magnitude of
            // epsilon to be zero
            return Math.Abs(value) < 2.2204460492503131E-15;
        }