Operator Modulus
Modulus(BigRational, BigRational)
Returns the remainder that results from division with two specified BigRational values.
Declaration
public static BigRational operator %(BigRational a, BigRational b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | The value to be divided. (dividend) |
BigRational | b | The value to divide by. (divisor) |
Returns
Type | Description |
---|---|
BigRational |
Remarks
For fractions, the same rules apply to modulus as to floating point types such as System.Double
where a % b
is defined as: a - Truncate(a / b) * b