Skip to content

Commit

Permalink
Merge pull request #115 from gnosis/hotfix-isclose-v1
Browse files Browse the repository at this point in the history
Fixed isClose to actually check if stuff isClose
  • Loading branch information
cag authored Jul 2, 2018
2 parents b3af342 + 54f55d9 commit 5e25273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/javascript/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Decimal = require('decimal.js').clone({ precision: PRECISION })

const ONE = Decimal(2).pow(64)

function isClose(a, b, relTol=1e9, absTol=1e18) {
function isClose(a, b, relTol=1e-9, absTol=1e-18) {
return Decimal(a.valueOf()).sub(b).abs().lte(
Decimal.max(
Decimal.max(
Expand Down

0 comments on commit 5e25273

Please sign in to comment.