-
-
Notifications
You must be signed in to change notification settings - Fork 16
ExtendedNumerics.BigDecimal.Equals(System.Nullable_ExtendedNumerics.BigDecimal_,System.Nullable_ExtendedNumerics.BigDecimal_,int)
Determines if two instances of BigDecimal are equal, up to precision digits.
The precise behavior of this method depends on the value of AlwaysTruncate.
If AlwaysTruncate is true, then both arguments will first be rounded to precision or Precision decimal places,
which ever is smaller. Then they will be checked for equivalency.
If AlwaysTruncate is false, then this method will behave as expected.
public static bool Equals(System.Nullable<ExtendedNumerics.BigDecimal> left, System.Nullable<ExtendedNumerics.BigDecimal> right, int precision);
left
System.Nullable<BigDecimal>
right
System.Nullable<BigDecimal>
precision
System.Int32
The number of digits to the right of the decimal place to perform the comparison to. Any digitx beyond this, will be ignored.
Precision supercedes this parameter, if AlwaysTruncate is true.
If AlwaysTruncate is true and Precision is smaller than precision, then this parameter is effectively ignored.
System.Boolean
True if the two numbers are equal, up to precision.