Big Float.Equals Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Equals( | Tests whether a number equals another number. |
Equals( | Returns whether this instance is equal to a specified object. |
Equals( | Tests whether a number equals another number up to the specified AccuracyGoal. |
Equals( | Tests whether a number equals another number up to the specified AccuracyGoal. |
Equals(BigFloat)
Tests whether a number equals another number.
public bool Equals(
BigFloat other
)
Parameters
Return Value
Booleantrue if the number equals other; otherwise false.
Implements
IEquatable<T>.Equals(T)Equals(Object)
Returns whether this instance is equal to a specified object.
public override bool Equals(
Object? obj
)
Parameters
- obj Object
- An object to compare with this instance.
Return Value
Booleantrue if obj is an instance of BigFloat and equals the value of this instance; otherwise, false.
Equals(BigFloat, AccuracyGoal)
Tests whether a number equals another number up to the specified AccuracyGoal.
public bool Equals(
BigFloat other,
AccuracyGoal goal
)
Parameters
- other BigFloat
- The BigFloat to compare.
- goal AccuracyGoal
- An AccuracyGoal value that specifies the threshold for equality.
Return Value
Booleantrue if the number equals other; otherwise false.
Equals(BigFloat, BigFloat, AccuracyGoal)
Tests whether a number equals another number up to the specified AccuracyGoal.
public static bool Equals(
BigFloat first,
BigFloat second,
AccuracyGoal accuracyGoal
)
Parameters
- first BigFloat
- The first BigFloat to compare.
- second BigFloat
- The second BigFloat to compare.
- accuracyGoal AccuracyGoal
- An AccuracyGoal value that specifies the threshold for equality.
Return Value
Booleantrue if first equals second to the precision specified by accuracyGoal; otherwise false.