Operator GreaterThan
GreaterThan(BigRational, BigRational)
Returns a value that indicates whether a BigRational value is greater than another BigRational value.
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 is greater than right; otherwise, false. |
GreaterThan(BigRational, Int64)
Returns a value that indicates whether a BigRational value is greater than an System.Int64 value.
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 is greater than right; 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.