Skip to content

Commit

Permalink
feat: add ceilDivide to safeMath
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Nov 5, 2020
1 parent d9ec441 commit 259c08f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/zoe/src/contractSupport/safeMath.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export const natSafeMath = harden({
subtract: (x, y) => Nat(x - y),
multiply: (x, y) => Nat(x * y),
floorDivide: (x, y) => Nat(Math.floor(x / y)),
ceilDivide: (x, y) => Nat(Math.ceil(x / y)),
});

0 comments on commit 259c08f

Please sign in to comment.