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

Accept no digits in the fractional part #302

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

kou
Copy link
Member

@kou kou commented Sep 5, 2024

fix #301

For example, "0.E-9" and "0." are accepted.

FYI:

Float()/.to_f will accept "0.E-9":
https://bugs.ruby-lang.org/issues/20705

The current Float doesn't accept "0." but .to_f accepts "0.".

@kou kou requested a review from mrkn September 6, 2024 02:20
@kou
Copy link
Member Author

kou commented Oct 3, 2024

@mrkn What do you think about this?

@mrkn
Copy link
Member

mrkn commented Oct 3, 2024

@kou I'm in favor of this change, but I want to merge this after Ruby's [Feature #20705] is closed.

@kou
Copy link
Member Author

kou commented Oct 9, 2024

@mrkn The ticket was closed.

fix ruby#301

For example, "0.E-9" and "0." are accepted.

FYI:

`Float()`/`.to_f` will accept "0.E-9":
https://bugs.ruby-lang.org/issues/20705

The current `Float` doesn't accept "0." but `.to_f` accepts "0.".
@mrkn mrkn force-pushed the accept-no-number-after-dot branch from 69e80ff to e01ff7e Compare October 10, 2024 06:30
@mrkn mrkn merged commit 66868ab into ruby:master Oct 10, 2024
73 checks passed
@mrkn
Copy link
Member

mrkn commented Oct 10, 2024

@kou Thank you very much!

@kou kou deleted the accept-no-number-after-dot branch October 10, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Cannot parse '0.E-9'
2 participants