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