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

Integer("1_0") raises an exception #3049

Closed
wants to merge 1 commit into from

Conversation

tsahara
Copy link
Member

@tsahara tsahara commented Dec 16, 2015

"1_0" is a string to be converted to a number but Integer("1_0") raises an exception.

% bin/mruby -e 'p Integer("1_0")'
trace:
        [0] -e:1
-e:1: invalid string for number("1_0") (ArgumentError)

% ruby -e 'p Integer("1_0")'
10

@matz
Copy link
Member

@matz matz commented Dec 16, 2015

I fixed it with some code cleanup. Will check in soon.

@matz matz closed this in d18c55f Dec 16, 2015
@tsahara tsahara deleted the pr-str-to-inum-accept-1_0 branch Jan 11, 2017
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.

None yet

2 participants