haskell / haskell/text-format

Documentation for prec is misleading

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
34
Forks
25
PR merge metrics
No merged PRs in 30d

Description

The documentation for prec says:

"Render a floating point number, with the given number of digits of precision. Uses decimal notation for values between 0.1 and 9,999,999, and scientific notation otherwise."

However, prec 2 3300 yields "3.3e3". I understand why that is, but the documentation made me expect decimal notation.

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.