diff --git a/X10D/src/Math/DecimalExtensions.cs b/X10D/src/Math/DecimalExtensions.cs index 951355a..a997745 100644 --- a/X10D/src/Math/DecimalExtensions.cs +++ b/X10D/src/Math/DecimalExtensions.cs @@ -198,11 +198,6 @@ public static class DecimalExtensions do { previous = current; - if (previous == 0.0m) - { - return 0; - } - current = (previous + value / previous) / 2; } while (System.Math.Abs(previous - current) > 0.0m); diff --git a/X10D/src/Math/DoubleExtensions.cs b/X10D/src/Math/DoubleExtensions.cs index 58d83ca..5a7a829 100644 --- a/X10D/src/Math/DoubleExtensions.cs +++ b/X10D/src/Math/DoubleExtensions.cs @@ -460,11 +460,6 @@ public static class DoubleExtensions do { previous = current; - if (previous == 0.0) - { - return 0; - } - current = (previous + value / previous) / 2; } while (System.Math.Abs(previous - current) > double.Epsilon); diff --git a/X10D/src/Math/SingleExtensions.cs b/X10D/src/Math/SingleExtensions.cs index 1b180c9..8678c35 100644 --- a/X10D/src/Math/SingleExtensions.cs +++ b/X10D/src/Math/SingleExtensions.cs @@ -419,11 +419,6 @@ public static class SingleExtensions do { previous = current; - if (previous == 0.0f) - { - return 0; - } - current = (previous + value / previous) / 2; } while (MathF.Abs(previous - current) > float.Epsilon);