UNPKG

bigarith.js

Version:

Do very large math to precision!

7 lines (6 loc) 238 B
console.log("%cTesting for tan", "color: blue; font-size: 20pt;"); then = new Date(); var s = BigArith.tan("45"); now = new Date(); assertSimilar(s, new BigArith("1")); console.log(`Took ${now-then} milliseconds to compute 45 45`);