BigFloat.Compare Method

Compares two BigFloat numbers up to the specified AccuracyGoal.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static int Compare(
	BigFloat first,
	BigFloat second,
	AccuracyGoal goal
)

Parameters

first  BigFloat
The first number to compare.
second  BigFloat
The second number to compare.
goal  AccuracyGoal
The threshold for equality.

Return Value

Int32
-1 if first is less than second; +1 if first is larger than second; 0 if first equals second.

Remarks

Numbers are compared up to the precision specified by goal. If numbers are the same up to this precision, they are considered equal.

See Also