Skip to content

Change std::fmt::{Float,LowerExp,UpperExp} to not print '-NaN' for NANs #16425

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

Merged
merged 1 commit into from
Aug 12, 2014

Conversation

nham
Copy link
Contributor

@nham nham commented Aug 11, 2014

Currently, this:

println!("{}", std::f64::NAN);

prints "-NaN". This commit is an attempt to change that to "NaN" instead.

@emberian
Copy link
Member

Thanks! Could you add a test?

@nham
Copy link
Contributor Author

nham commented Aug 11, 2014

I don't know if I did it correctly, but I attempted to add a test

@nham
Copy link
Contributor Author

nham commented Aug 12, 2014

Apologies, I tested the wrong thing before. I think I've fixed the failing build.

bors added a commit that referenced this pull request Aug 12, 2014
Currently, this:

    println!("{}", std::f64::NAN);

prints "-NaN". This commit is an attempt to change that to "NaN" instead.
@bors bors closed this Aug 12, 2014
@bors bors merged commit 04233a1 into rust-lang:master Aug 12, 2014
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.

4 participants