Skip to content

print floating point values at full precision by default #796

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

Open
steveklabnik opened this issue Feb 2, 2015 · 4 comments
Open

print floating point values at full precision by default #796

steveklabnik opened this issue Feb 2, 2015 · 4 comments
Labels
breaking-change The RFC proposes a breaking change. T-libs-api Relevant to the library API team, which will review and decide on the RFC.

Comments

@steveklabnik
Copy link
Member

Issue by thestinger
Wednesday May 21, 2014 at 20:08 GMT

For earlier discussion, see rust-lang/rust#14339

This issue was labelled with: I-enhancement in the Rust repository


By rounding to a specific number of digits by default, the standard library is causing confusion. Printing to a specified precision is very useful, but it should only happen via {:.2} rather than by default.

@retep998
Copy link
Member

I think this is especially important for Debug which is supposed to print things as closely as possible to how they would be in code. When I can't accurately replicate values due to lost precision, that's bad.

@steveklabnik steveklabnik added breaking-change The RFC proposes a breaking change. A-libs and removed A-wishlist labels Feb 14, 2015
@petrochenkov petrochenkov added T-libs-api Relevant to the library API team, which will review and decide on the RFC. and removed A-libs labels Jan 28, 2018
@Centril
Copy link
Contributor

Centril commented Oct 7, 2018

Since this seems to be a breaking change I'm closing it as non-actionable.

@Centril Centril closed this as completed Oct 7, 2018
@retep998
Copy link
Member

retep998 commented Oct 7, 2018

We've made changes to how numbers were formatted before so we don't guarantee stability on that sort of thing.

@Centril
Copy link
Contributor

Centril commented Oct 7, 2018

@retep998 if you say so... however, I would like to prevent this from being open forever; someone should either act on it (soon), or it should be closed.

@Centril Centril reopened this Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change The RFC proposes a breaking change. T-libs-api Relevant to the library API team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

4 participants