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 decimal thisNumber, decimal comparisonValue, decimal precision = 0.0001m)
    {
        return Math.Abs(thisNumber - comparisonValue) < precision;
    }
[ MustUseReturnValue ] public static bool IsBasicallyEqualTo ( this decimal thisNumber , decimal comparisonValue , decimal precision = 0.0001m ) { 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 .
decimal
this
<not_specific>
comparisonValue
decimal
<not_specific>
precision
decimal
<not_specific>