Big Float.Compare Method
Compares two BigFloat numbers up to the specified AccuracyGoal.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
-1 if first is less than second; +1 if first is larger than second; 0 if first equals second.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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.