uutils / uutils/coreutils

printf "%.1f %.1f" 2.45 2.55 should be 2.5 2.5 instead of 2.4 2.6

Open
#13,147 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

U - printf
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

Contributor guide

Open the contributing guide

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 reproducing the printf command shown in the issue, then read the linked MSYS2-packages issue for context on the rounding discrepancy. Trace the Rust printf implementation and compare its result with the expected output. Done means the command produces 2.5 2.5 for the reported inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.