Compares the values of two decimal values and returns sort order information.
- d1
- The first value to compare.
- d2
- The second value to compare.
The return value is a negative number, zero, or a positive number reflecting the sort order of d1 as compared to d2. Trailing zero digits in the fractional part of are ignored. For non-zero return values, the exact value returned by this method is unspecified. The following table defines the return value. Each comparison compares the numerical values of d1 and d2.
Return Value Meaning Any negative number d1< d2 Zero d1 == d2 A positive number d1>d2
Documentation for this section has not yet been entered.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0