Operator Multiply
Multiply(BigRational, BigRational)
Multiplies two specified BigRational values.
Declaration
public static BigRational operator *(BigRational a, BigRational b)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | a | The first value to multiply. |
| BigRational | b | The second value to multiply. |
Returns
| Type | Description |
|---|---|
| BigRational | The product of left and right. |
Multiply(BigRational, Int64)
Multiplies 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 first value to multiply. |
| System.Int64 | b | The second value to multiply. |
Returns
| Type | Description |
|---|---|
| BigRational | The product of left and right. |
Remarks
Fast multiplication 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.
Multiply(Int64, BigRational)
Multiplies 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 first value to multiply. |
| BigRational | b | The second value to multiply. |
Returns
| Type | Description |
|---|---|
| BigRational | The product of left and right. |
Remarks
Fast multiplication 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.