Operator LessThan
LessThan(BigRational, BigRational)
Returns a value that indicates whether a BigRational value is less 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 less than right; otherwise, false. |
LessThan(BigRational, Int64)
Returns a value that indicates whether a BigRational value is less 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 less 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.