auto b1 = BigFixed(1, 10); assert((1 + b1).toDecimalString(2) == "2.00"); assert((1 - b1).toDecimalString(2) == "0.00"); assert((2 * b1).toDecimalString(2) == "2.00"); assert((2 / b1).toDecimalString(2) == "2.00"); assert(((1 << 9) | b1).toDecimalString(2) == "1.50"); assert((1 & b1).toDecimalString(2) == "0.00"); assert(((1 << 9) ^ b1).toDecimalString(2) == "1.50");
Implements binary operators of the form Integer op BigFixed