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

Update string.to_number #256

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Update string.to_number #256

merged 1 commit into from
Dec 3, 2023

Conversation

irh
Copy link
Contributor

@irh irh commented Dec 3, 2023

  • Add 0x/0o/0b number parsing to string.to_number.
  • Add an overload for providing a specific base.
  • Return null when parsing fails rather than throwing an exception.

@irh irh merged commit 0bd79a3 into main Dec 3, 2023
6 checks passed
@irh irh deleted the string-to-number-improvements branch December 3, 2023 17:32
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.

1 participant