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

write out "inf"/"-inf" in float::to_str_common #2164

Merged
merged 1 commit into from
Apr 8, 2012
Merged

write out "inf"/"-inf" in float::to_str_common #2164

merged 1 commit into from
Apr 8, 2012

Conversation

grahame
Copy link
Contributor

@grahame grahame commented Apr 8, 2012

We were writing out zero when we encountered infinite floating point numbers in float::to_str_common. This fixes that. I chose "inf"/"-inf" as it's what printf(3) does.

brson added a commit that referenced this pull request Apr 8, 2012
write out "inf"/"-inf" in float::to_str_common
@brson brson merged commit 56f0979 into rust-lang:master Apr 8, 2012
@brson
Copy link
Contributor

brson commented Apr 8, 2012

Thanks!

bors pushed a commit to rust-lang-ci/rust that referenced this pull request Sep 22, 2022
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