diff --git a/src/Quantity.ts b/src/Quantity.ts index d54d4bc..800c23b 100644 --- a/src/Quantity.ts +++ b/src/Quantity.ts @@ -528,7 +528,7 @@ export default class Quantity { [x, y] = Quantity.sameDenomination(x, y); return new Quantity( - x.#qty * 10n ** x.#D % y.#qty, + x.#qty % y.#qty, x.#D ); }