src/AppMotor.Core/Extensions/NumbersExtensions.cs
/// <summary>
/// Returns whether this number is basically equal to the specified number. They're considered equal if
/// their difference is less than the specified precision.
/// </summary>
Returns whether this number is basically equal to the specified number. They're considered equal if
their difference is less than the specified precision.
Returns whether this number is basically equal to the specified number . They ' re considered equal if their difference is less than the specified precision .
[MustUseReturnValue]
    public static bool IsBasicallyEqualTo(this double thisNumber, double comparisonValue, double precision = 0.0001)
    {
        return Math.Abs(thisNumber - comparisonValue) < precision;
    }
[ MustUseReturnValue ] public static bool IsBasicallyEqualTo ( this double thisNumber , double comparisonValue , double precision = 0.0001 ) { return Math . Abs ( thisNumber - comparisonValue ) < precision ; }
Returns whether this number is basically equal to the specified number.
Returns whether this number is basically equal to the specified number .
double
this
<not_specific>
comparisonValue
double
<not_specific>
precision
double
<not_specific>