Parameters
- obj
- TdDecimal instance that will be compared to this instance of TdDecimal.
Return Value
true
is returned if the two TdDecimals are equal, false
otherwise.true
is returned if the two TdDecimals are equal, false
otherwise.false
will be returned if:
null
. true
will be returned if:
// The M is used to indicate that the numeric literal is a System.Decimal TdDecimal large = new TdDecimal(32425643243167.43433M); Object medium = new TdDecimal(89732.4543M); // The following comparison is equivalent to using // false == TdDecimal.Equals(large, (TdDecimal) medium) // large != (TdDecimal) medium // true == TdDecimal.NotEquals(large, (TdDecimal) medium) // if (false == large.Equals(medium)) { Console.WriteLine("large does not equal medium"); }
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |