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

Fix #1015 #1030

Merged
merged 4 commits into from
Oct 12, 2011
Merged

Fix #1015 #1030

merged 4 commits into from
Oct 12, 2011

Conversation

Yoric
Copy link
Contributor

@Yoric Yoric commented Oct 12, 2011

This should fix issue #1015. I have reimplemented str_to_float to extend the grammar that it can parse. Including, say, strings with a decimal part :)

I take the opportunity to replace the implementation of int::pow to use fast exponentiation, to add a few functions to the new float module, as well as a few tests. I also renamed str_to_float and float_to_str into float::from_str and float::to_str, to harmonize with the int module.

@marijnh marijnh merged commit 75bda42 into rust-lang:master Oct 12, 2011
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
Kobzol pushed a commit to Kobzol/rust that referenced this pull request Dec 30, 2024
The section was removed in rust-lang#1030 and re-added in a different place in
2d42cf7.
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jan 2, 2025
The section was removed in rust-lang#1030 and re-added in a different place in
2d42cf7.
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.

2 participants