Files
NickAppLab 5d2c6a85d7 Tests fix
2022-07-26 03:56:59 +05:00

14 lines
379 B
C#

using System;
namespace LoaderCalculator.Tests.Infrastructures.Logics
{
internal static class ExpectedProcessor
{
internal static double GetAccuracyForExpectedValue(double expectedValue, double accuracy = 0.001d)
{
if (expectedValue == 0d) { return 1.0e-15d; }
else return Math.Abs(expectedValue) * accuracy;
}
}
}