rust-lang / rust-lang/rfcs

print floating point values at full precision by default

Open
#796 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking-change T-libs
Dominant language
Markdown
Stars
6.6k
Forks
1.7k
Avg merge
16h 14m
Merged PRs (30d)
1

Description

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

For earlier discussion, see https://github.com/rust-lang/rust/issues/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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the earlier discussion in Rust issue 14339 and the surrounding standard-library formatting behavior. Define how default floating-point output should use full precision while explicit formats such as {:.2} retain their specified precision; the issue provides no file or test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.