Compares a number to another number up to the specified
AccuracyGoal.
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public int CompareTo(
BigFloat other,
AccuracyGoal goal
)
Public Function CompareTo (
other As BigFloat,
goal As AccuracyGoal
) As Integer
public:
int CompareTo(
BigFloat^ other,
AccuracyGoal goal
)
member CompareTo :
other : BigFloat *
goal : AccuracyGoal -> int
Parameters
- other
- Type: Extreme.MathematicsBigFloat
A BigFloat value. - goal
- Type: Extreme.MathematicsAccuracyGoal
The threshold for equality.
Return Value
Type:
Int32-1 if this number is less than
other; +1 if this number is larger than
other;
0 if this number equals
other.
Numbers are compared up to the precision specified by goal. If numbers are the same up to this
precision, they are considered equal.
Numerical Libraries
Supported in: 6.0, 5.x, 4.x
Reference