Files
PepApi.Core/PepLib.Core/Tolerance.cs
2025-10-27 18:48:23 -04:00

15 lines
291 B
C#

using System;
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;
}
}
}