From 54f55d9f9ef07d94ebb708651d9cecbcacf719f4 Mon Sep 17 00:00:00 2001 From: Alan Lu Date: Sat, 23 Jun 2018 15:27:51 -0500 Subject: [PATCH] Fixed isClose to actually check if stuff isClose --- test/javascript/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/javascript/utils.js b/test/javascript/utils.js index 8094b78..d6ced9f 100644 --- a/test/javascript/utils.js +++ b/test/javascript/utils.js @@ -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(