Skip to content

Commit

Permalink
fix(Money.distributeBy): distribute rest amount across non-zero weigh…
Browse files Browse the repository at this point in the history
…ts (#111)

When distributing rest amount across parts we should skip the parts
with zero weight
  • Loading branch information
frodeaa committed Nov 3, 2023
1 parent ce9055c commit 2ce81f1
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 41 deletions.
3 changes: 2 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Big, { RoundingMode } from 'big.js';
import type { RoundingMode } from "big.js";
import Big from "big.js";
type NumberInput = number | string | Big;
type Factor = number | Big;
type Tags = {
Expand Down
85 changes: 49 additions & 36 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ce81f1

Please sign in to comment.