Method IsOne
IsOne(double)
Determines whether the specified value is equal to 1.0 within a small tolerance.
public static bool IsOne(double value)
Parameters
valuedoubleThe double-precision floating-point number to compare to 1.0.
Returns
Remarks
This method uses a tolerance-based comparison to account for potential floating-point precision errors.
IsOne(float)
Determines whether the specified value is equal to 1.0 within a small tolerance.
public static bool IsOne(float value)
Parameters
valuefloatThe floating-point number to compare to 1.0.
Returns
Remarks
This method uses a tolerance-based comparison to account for potential floating-point precision errors.