Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web3.Utils.formatToEthereumUnits #48

Closed
skywinder opened this issue Sep 21, 2018 · 2 comments
Closed

Web3.Utils.formatToEthereumUnits #48

skywinder opened this issue Sep 21, 2018 · 2 comments

Comments

@skywinder
Copy link
Collaborator

From @xiaoluSF on September 21, 2018 8:50

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

Copied from original issue: BANKEX/web3swift#224

@shamatar
Copy link
Contributor

shamatar commented Oct 4, 2018

Should be fixed in 1.1.10

@xiaoluSF
Copy link

xiaoluSF commented Oct 8, 2018

OK,THX。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants