FixedBinary.opBinary
FixedBinary opBinary(string op)(FixedBinary rhs) if (op == "+" || op == "-") constFixed-point addition/subtraction. Overflows wrap like the storage integer (explicit unsigned arithmetic, as in C fixed-point code).
Parameters
rhs | the other operand. |
Returns
The sum or difference, wrapping on overflow.
FixedBinary opBinary(string op)(I rhs) if (op == "+" || op == "-" || op == "*") constInteger addition/subtraction at the current scale, and integer multiplication. Overflows wrap like the storage integer.
Parameters
rhs | the integer operand. |
Returns
The result, wrapping on overflow.
Fixed-point multiplication with the default rounding policy.
Parameters
rhs | fixed-point factor. |
Returns
the product, wrapping after scale reduction.