Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Web3.Utils.formatToEthereumUnits #224

Closed
xiaoluSF opened this issue Sep 21, 2018 · 1 comment
Closed

Web3.Utils.formatToEthereumUnits #224

xiaoluSF opened this issue Sep 21, 2018 · 1 comment

Comments

@xiaoluSF
Copy link

xiaoluSF commented Sep 21, 2018

Hello !
I have a value 100 wei, format to Ethereum with fallbackToScientific is true.
result is '100e-16',but the correct is 1.0e-16.
Same, 1000wei or 10000 wei all have the wrong result.
This's the code,fullRemainder should format to x.xx..,but it is not processed here.
Another option is delete the break,make result is 100e-18
image

@skywinder
Copy link
Contributor

This issue was moved to web3swift-team/web3swift#48

@v57 v57 closed this as completed Oct 26, 2018
v57 added a commit that referenced this issue Oct 28, 2018
Fixed #224 #220 #137 #222 added better solidity function parser
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants