System.DoubleExtensions.IsNanOrZero C# (CSharp) Method

IsNanOrZero() public static method

public static IsNanOrZero ( this target ) : bool
target this
return bool
        public static bool IsNanOrZero(this double target)
        {
            if (double.IsNaN(target)) return true;
            // ReSharper disable once CompareOfFloatsByEqualityOperator
            return target == 0;
        }
DoubleExtensions