[Ethereum] Convert Ether to Wei without web3


I don't want to load the web3 library, I do however want to convert Either to Wei, does anyone have a JavaScript function to share.

I don't mind loading a smaller library

Best Answer

In javascript it would be wei = eth_amount*10e17. Not *10e18 . e counts as the 10 and *10e18 would multiply your eth by one order of magnitude too many!

Related Topic