Remove unnecessary System, System.Collections.Generic, System.IO, and System.Linq using directives that were flagged by IDE analyzers. Also includes minor whitespace and code style normalization. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
13 lines
276 B
C#
13 lines
276 B
C#
namespace PepLib
|
|
{
|
|
public static class Tolerance
|
|
{
|
|
public const double Epsilon = 0.0001;
|
|
|
|
public static bool IsEqualTo(this double a, double b, double tolerance = Epsilon)
|
|
{
|
|
return Math.Abs(b - a) <= tolerance;
|
|
}
|
|
}
|
|
}
|