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