'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"); }
Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2