Skip to content

Conversation

@andrykonchin
Copy link
Contributor

@andrykonchin andrykonchin commented Oct 17, 2025

So now String#to_i{,8,16,32,64,128} and String#to_u{8,16,32,64,128} treat "0X", "0O", "0B" at the beginning of a string as valid prefixes.

Closes #15237

So now String#to_i{,8,16,32,64,128} and String#to_u{,8,16,32,64,128} treat "0X", "0O", "0B" at the beginning of a string as valid prefixes.
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.

Handle 0X in String to integer conversions

2 participants