Package0.2.4Text
floatshow
Alternative faster String representations for Double and Float, String representations for more general numeric types.
- Version0.2.4
- CategoryText
- LicenceBSD-3-Clause
- AuthorDaniel Fischer
- Maintainerdaniel.is.fischer@googlemail.com
- Homepagebitbucket.org/dafis/floatshow
- Pinned byhackage floatshow 0.2.4
- Sourcehackage.haskell.org/package/floatshow-0.2.4
Modules
2 modules- Text.FShow.Raw11Lower level conversion of base-2 numbers to base-10 representations.
- Text.FShow.RealFloat11Faster String representations for floating point types.
Description
The String representations provided by this package are generally longer than show's output, which constructs the shortest string that is parsed as the original number by read. This requires some time-consuming checks, so show is slow for floating-point numbers. By producing a digit-string guaranteed to be long enough to uniquely determine the number without caring whether there's a shorter representation, the display functions of this package can be faster, sometimes by a big margin. Text.FShow.Raw provides building blocks for representations of numeric types which don't belong to RealFloat but have some of its functionality. The bulk of the code is a minor modification of code from the base package, whence the GHC License is included as an extra-source-file.
Depends on
3 packages- array-0.5.8.0with GHC
- base-4.20.2.0with GHC
- integer-gmp-1.1with GHC
Used by in this set · 0
Nothing in this set depends on it.