Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static int Compare(
BigFloat first,
BigFloat second,
AccuracyGoal goal
)
Public Shared Function Compare (
first As BigFloat,
second As BigFloat,
goal As AccuracyGoal
) As Integer
public:
static int Compare(
BigFloat^ first,
BigFloat^ second,
AccuracyGoal goal
)
static member Compare :
first : BigFloat *
second : BigFloat *
goal : AccuracyGoal -> int
Parameters
- first
- Type: Extreme.MathematicsBigFloat
The first number to compare. - second
- Type: Extreme.MathematicsBigFloat
The second number to compare. - goal
- Type: Extreme.MathematicsAccuracyGoal
The threshold for equality.
Return Value
Type:
Int32-1 if
first is less than
second; +1 if
first is larger
than
second; 0 if
first equals
second.
Numbers are compared up to the precision specified by goal. If numbers are the same up to this
precision, they are considered equal.
Reference