In cases where that isn't possible, try an infinite precision javascript library. https://github.com/MikeMcl/big.js
You could _probably_ find a way to shim big.js into OP's library :)
In cases where that isn't possible, try an infinite precision javascript library. https://github.com/MikeMcl/big.js
You could _probably_ find a way to shim big.js into OP's library :)