Changeset 17351 for trunk/HeuristicLab.Common/3.3/DoubleExtensions.cs
- Timestamp:
- 11/15/19 13:17:53 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Common/3.3/DoubleExtensions.cs
r17350 r17351 28 28 /// <param name="x">First double value to be checked</param> 29 29 /// <param name="y">Second double value to compare with</param> 30 /// <returns> </returns>30 /// <returns>true if the difference is <= 1.0E-12</returns> 31 31 public static bool IsAlmost(this double x, double y) { 32 32 var epsilon = 1.0E-12; … … 40 40 /// <param name="y">Second double value to compare with</param> 41 41 /// <param name="epsilon">Error term to specify the precision</param> 42 /// <returns> </returns>42 /// <returns>true if the difference is <= epsilon</returns> 43 43 public static bool IsAlmost(this double x, double y, double epsilon) { 44 44 if (double.IsInfinity(x)) {
Note: See TracChangeset
for help on using the changeset viewer.