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 E notation parsing in BigDecimal #9577

Merged

Conversation

stevegeek
Copy link
Contributor

Fixes #9547

These changes fix the various classes of problems i could find by fuzzing the passing of E notation in BigDecimal

spec/std/big/big_decimal_spec.cr Outdated Show resolved Hide resolved
@stevegeek
Copy link
Contributor Author

Apologies for the long delay on this... I will review if still relevant and fix up PR if needed (else close)

Copy link
Member

@beta-ziliani beta-ziliani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @stevegeek 🙇 !

@stevegeek
Copy link
Contributor Author

I can confirm this (#9547) is still an issue , and this fix is still relevant.

My RFC for changing the parsing: #9580 #9581 is also thus still relevant but guess it maybe superseeded by #10641 .. anyway will move that discussion there.

Thank you @beta-ziliani for all the work on Crystal (and thanks @straight-shoota for the original review)!

Let me know if there is anything else you need with this PR.

@straight-shoota straight-shoota changed the title Fix E notation parsing in BigDecimal Fix E notation parsing in BigDecimal Mar 11, 2022
@beta-ziliani beta-ziliani added this to the 1.4.0 milestone Mar 18, 2022
@straight-shoota straight-shoota merged commit ecb97a9 into crystal-lang:master Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigDecimal E notation (scientific) string parser bugs, (& proposed fixes)
3 participants