'Declaration Public Overloads Shared Function Equals( _ ByVal left As TdNumber, _ ByVal right As TdNumber _ ) As Boolean
Parameters
- left
- A TdNumber instance.
- right
- A TdNumber instance.
Return Value
true
operands are equal, false
otherwise.'Declaration Public Overloads Shared Function Equals( _ ByVal left As TdNumber, _ ByVal right As TdNumber _ ) As Boolean
true
operands are equal, false
otherwise.true
if the left is equal to the right, false
otherwise.
Return Value | Description |
---|---|
true |
left and right are TdNumber.Null -or- |
false |
-or- |
// The M is used to indicate that the numeric literal is a System.Decimal TdNumber large = new TdNumber(32425643243167.43433M); TdNumber medium = new TdNumber(89732.4543M); // The following comparison methods and operators are equivalent if (false == TdNumber.Equals(large, medium) || large != medium || true == TdNumber.NotEquals(large, 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 |