Fixed Point Rounding
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with tests/builder/Data/ByteString/Builder/Tests.hs at the linked floating-point formatting test, then inspect formatDouble (standard places) and compare its expected behavior with showFFloat. Determine and document the intended result for 12.345 at two decimal places when rounding is exactly tied; done means the rounding rule is decided and the test reflects it.
Written by the indexing model from the issue text.
Description
A test for printing a floating point number of 12.345 with two decimal places checks for the result of "12.34". This matches with the result of showFFloat but @clyring is suggesting this is an error.
What should the result of formatDouble (standard places) be when it is the same distance to round up or down?
- Dominant language
- Haskell
- Stars
- 302
- Forks
- 146
- Avg merge
- 7d 21h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haskell/bytestring
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
haskell/bytestring#730 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
haskell/bytestring#723 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
haskell/bytestring#697 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
haskell/bytestring#689 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
haskell/bytestring#684 · 3 comments ·
All issues in haskell/bytestring
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
seal-harness/seal-harness#399 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
fmidue/codeworld-tasks#124 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
reflex-frp/reflex#563 ·
-
The codecov job never gets a runner on macos-26 and is cancelledPossibly taken @yegor256 claimed this 1 day ago. Openbug
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
objectionary/phino#2524 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
IntersectMBO/cardano-api#1434 ·
Maintainers usually reply within 2 days