haskell / haskell/bytestring

`FloatFormat` should allow scientific notation with given precision

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

Description

Hello!

I was wondering if we could get the possibility to format a Float or Double in scientific notation with a given precision (number of decimal places). That is:

```
scientificFixedPrecision :: Int -> FloatFormat
```

Further, it would make sense to format Float and Double in standard notation, but with a given number of significant digits.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the FloatFormat entry point and the existing Float and Double formatting behavior. Clarify the API and expected output for scientific notation with a fixed number of decimal places, plus standard notation with significant digits; done means both requested formatting capabilities are implemented and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
backend
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.