Skip to content

Commit 30493c5

Browse files
grin0cjalateras
authored andcommitted
Fix test for formula RATE.
PR: #47 Reviewed-By: Jim Alateras <[email protected]>
1 parent 1da4b08 commit 30493c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/financial.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ suite('Financial', function() {
435435
financial.RATE(2 * 12, -1000, -10000, 100000, 0, 0.75).should.approximately(0.0651789117718154, 1e-9);
436436
financial.RATE(2 * 12, -1000, -10000, 100000, 0, 0.065).should.approximately(0.06517891177181524, 1e-9);
437437
financial.RATE(2 * 12, -1000, -10000, 100000, 1, 0.1).should.approximately(0.0632395800018064, 1e-9);
438-
financial.RATE(2 * 12, -1000, -10000, 100000, 1, 1e-11).should.approximately(-1.3199999999735999e-20, 1e-9);
438+
financial.RATE(2 * 12, -1000, -10000, 100000, 1, 1e-14).should.approximately(-2.2949415145819036e-14, 1e-9);
439439
financial.RATE('invalid', -1000, -10000, 100000, 1, 1e-11).should.equal(error.value);
440440
});
441441

0 commit comments

Comments
 (0)