haskell / haskell/bytestring

Fixed Point Rounding

Open
#679 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
301
Forks
144
Avg merge
7d 22h
Merged PRs (30d)
1

Description

A [test](https://github.com/haskell/bytestring/blob/46a3aeb179c26d2385f95ba518eaa5464c94ceaa/tests/builder/Data/ByteString/Builder/Tests.hs#L775) 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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.