Operator Inequality
Inequality(BigRational, BigRational)
Returns a value that indicates whether two BigRational numbers have different values.
Declaration
public static bool operator !=(BigRational a, BigRational b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | The first value to compare. |
BigRational | b | The second value to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if left and right are not equal; otherwise, false. |
Inequality(BigRational, Int64)
Returns a value that indicates whether a BigRational value and an System.Int64 value are not equal.
Declaration
public static bool operator !=(BigRational a, long b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | The first value to compare. |
System.Int64 | b | The second value to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if left and right are not equal; otherwise, false. |
Remarks
For fast comparisons of common cases like: x != 0
.
Note that all smaller signed and unsigned integer types are automatically mapped to this operator, which is efficient on 64-bit systems.