Skip to content

Commit

Permalink
fix ceil (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardliang authored Dec 6, 2023
1 parent 5a61548 commit a6ffe4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuits-circom/utils/ceil.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.1.5;

function ceil(value, precision) {
return (value + precision - 1) / precision * precision;
return (value + precision - 1) \ precision * precision;
}

0 comments on commit a6ffe4d

Please sign in to comment.