DecimalCompareTo Method (Decimal) |
Compares this instance to a specified
Decimal object.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public int CompareTo(
decimal value
)
Parameters
- value
- Type: SystemDecimal
The object to compare with this instance.
Return Value
Type:
Int32A signed number indicating the relative values of this instance and
value.Return Value Meaning Less than zero This instance is less than
value. Zero This instance is equal to
value. Greater than zero This instance is greater than
value.
See Also