haskell / haskell/bytestring

Positive and Negative Zero Print Incorrect Precision

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

Description

The `standard` formatter outputs the incorrect precision for zero and negative zero due to the `specialStr` function not taking the specified precision into account and always outputting `0.0` and `-0.0`.

I have added tests in #638 that find this bug and #636 fixes this bug.

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.