Skip to content

Commit

Permalink
feat: finish mod operator
Browse files Browse the repository at this point in the history
  • Loading branch information
martonlederer committed Apr 14, 2024
1 parent 21af47a commit cb5daf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quantity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit cb5daf7

Please sign in to comment.