Last active
February 28, 2018 00:50
-
-
Save miguelmota/2f95505b9daf5b21416d766d49e77e05 to your computer and use it in GitHub Desktop.
One billion in wei using web3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web3.toBigNumber(1000000000).mul((web3.toBigNumber(10).pow(web3.toBigNumber(18)))).toString(10) | |
// "1000000000000000000000000000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment