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

Fix decoding of .0 #137

Merged
merged 1 commit into from
Oct 9, 2019
Merged

Fix decoding of .0 #137

merged 1 commit into from
Oct 9, 2019

Conversation

lantw44
Copy link
Contributor

@lantw44 lantw44 commented Feb 19, 2019

Since trailing 0 digits after the decimal point are trimmed, intString
becomes an empty string when there is no digit before the decimal point
and all digits after the decimal point is 0, causing big.Int SetString
to fail because there is no string to parse.

Fix #134.

Since trailing 0 digits after the decimal point are trimmed, intString
becomes an empty string when there is no digit before the decimal point
and all digits after the decimal point is 0, causing big.Int SetString
to fail because there is no string to parse.

Fix shopspring#134.
@njason njason merged commit f1972eb into shopspring:master Oct 9, 2019
flemeur pushed a commit to flemeur/decimal that referenced this pull request Nov 5, 2019
fairyhunter13 added a commit to fairyhunter13/decimal that referenced this pull request Jul 12, 2020
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

Successfully merging this pull request may close these issues.

Cannot parse .0
2 participants