1

Prior to version 1.0.0, I could do it like this, for example:

web3.BigNumber.config({DECIMAL_PLACES: 100, ROUNDING_MODE: web3.BigNumber.ROUND_DOWN});

At version 1.0.0, it seems that web3.BigNumber is no longer defined.

The only alternative that comes to mind is require("bignumber.js") and use it instead.

Is there another way?

Thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.