double-conversion: Fast conversion between single and double precision floating point and text
A library that performs fast, accurate conversion between floating point and text.
This library is implemented as bindings to the C++
double-conversion
library written by Florian Loitsch at Google:
https://github.com/floitsch/double-conversion.
Now it can convert single precision numbers, and also it can create Builder, instead of bytestring or text.
The Text
versions of these functions are about 30 times faster
than the default show
implementation for the Double
type.
The ByteString
versions are have very close speed to the Text
versions;
Builder versions (both for Text and Bytestring) are slower on single value, but they are much faster on large number of values (up to 20x faster on list with 20000 doubles).
As a final note, be aware that the bytestring-show
package is
about 50% slower than simply using show
.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Flags
Manual Flags
Name | Description | Default |
---|---|---|
developer | operate in developer mode | Disabled |
Automatic Flags
Name | Description | Default |
---|---|---|
embedded_double_conversion | embed the C++ double_conversion library | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- double-conversion-2.0.5.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.0.3, 0.2.0.4, 0.2.0.5, 0.2.0.6, 2.0.1.0, 2.0.2.0, 2.0.3.0, 2.0.4.0, 2.0.4.1, 2.0.4.2, 2.0.5.0 (info) |
---|---|
Dependencies | base (>=4 && <5), bytestring, ghc-prim, system-cxx-std-lib (==1.0), text (>=0.11.0.8) [details] |
Tested with | ghc ==9.0.2 || ==9.2.8 || ==9.4.7 || ==9.6.2 |
License | BSD-2-Clause |
Author | Bryan O'Sullivan <bos@serpentine.com> |
Maintainer | Bryan O'Sullivan <bos@serpentine.com> |
Category | Text |
Home page | https://github.com/haskell/double-conversion |
Bug tracker | https://github.com/haskell/double-conversion/issues |
Source repo | head: git clone https://github.com/haskell/double-conversion |
Uploaded | by Haskell_Mouse at 2024-02-11T15:24:21Z |
Distributions | Arch:2.0.5.0, Debian:2.0.2.0, Fedora:2.0.4.2, FreeBSD:2.0.1.0, LTSHaskell:2.0.5.0, NixOS:2.0.5.0, Stackage:2.0.5.0 |
Reverse Dependencies | 34 direct, 7905 indirect [details] |
Downloads | 53220 total (367 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |