Actions
Bug #13088
closedStrange behavior in String.to_i
Description
When I try convert a string to integer using .to_i method it has a strange behavior.
It converts the first number in the string to integer. Is it correct?
I think the expected behavior should be convert to a integer if it has only numbers and return 0 if has a non-digit char on it.
Thank you!
Files
Actions
Like0
Like0