BigFloat.Equals Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Equals(BigFloat) Tests whether a number equals another number.
Equals(Object) Returns a value indicating whether this instance is equal to a specified object.
Equals(BigFloat, AccuracyGoal) Tests whether a number equals another number up to the specified AccuracyGoal.
Equals(BigFloat, BigFloat, AccuracyGoal) Tests whether a number equals another number up to the specified AccuracyGoal.

Equals(BigFloat)

Tests whether a number equals another number.
C#
public bool Equals(
	BigFloat other
)

Parameters

other  BigFloat
The BigFloat to compare.

Return Value

Boolean
true if the number equals other; otherwise false.

Implements

IEquatable<T>.Equals(T)

Equals(Object)

Returns a value indicating whether this instance is equal to a specified object.
C#
public override bool Equals(
	Object obj
)

Parameters

obj  Object
An object to compare with this instance.

Return Value

Boolean
true 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.
C#
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

Boolean
true if the number equals other; otherwise false.

Equals(BigFloat, BigFloat, AccuracyGoal)

Tests whether a number equals another number up to the specified AccuracyGoal.
C#
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

Boolean
true if first equals second to the precision specified by accuracyGoal; otherwise false.

See Also