Operator Division
Division(BigRational, BigRational)
Divides a specified BigRational value by another specified BigRational value.
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. (devisor) |
Returns
| Type | Description |
|---|---|
| BigRational | The result of the division. NaN when divided by zero. |
Division(BigRational, Int64)
Divides the values of a specified BigRational and a System.Int64 number.
Declaration
public static BigRational operator /(BigRational a, long b)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | a | The value to be divided. (dividend) |
| System.Int64 | b | The value to divide by. (devisor) |
Returns
| Type | Description |
|---|---|
| BigRational | The result of the division. NaN when divided by zero. |
Remarks
Fast divison of common cases like: x / 2.
Note that all smaller signed and unsigned integer types are automatically mapped to this operator, which is efficient on 64-bit systems.
Division(Int64, BigRational)
Divides the values of a specified System.Int64 and a BigRational number.
Declaration
public static BigRational operator /(long a, BigRational b)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | a | The value to be divided. (dividend) |
| BigRational | b | The value to divide by. (devisor) |
Returns
| Type | Description |
|---|---|
| BigRational | The result of the division. NaN when divided by zero. |
Remarks
Fast divison of common cases like: 2 / x.
Note that all smaller signed and unsigned integer types are automatically mapped to this operator, which is efficient on 64-bit systems.