The double-conversion package
A library that performs fast, accurate conversion between double precision floating point and text.
This library is implemented as bindings to the C++ double-conversion library written by Florian Loitsch at Google: http://code.google.com/p/double-conversion/.
The Text versions of these functions are about 30 times faster than the default show implementation for the Double type.
The ByteString versions are slower than the Text versions; roughly half the speed. (This seems to be due to the cost of allocating ByteString values via malloc.)
As a final note, be aware that the bytestring-show package is about 50% slower than simply using show.
Properties
| Versions | 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 |
|---|---|
| Dependencies | base (4.*), bytestring, ghc-prim, text (≥0.11.0.8) |
| License | BSD3 |
| Author | Bryan O'Sullivan <bos@serpentine.com> |
| Maintainer | Bryan O'Sullivan <bos@serpentine.com> |
| Stability | experimental |
| Category | Text |
| Home page | https://github.com/bos/double-conversion |
| Bug tracker | https://github.com/bos/double-conversion/issues |
| Source repository | git clone https://github.com/bos/double-conversion |
| Upload date | Mon Dec 31 22:10:18 UTC 2012 |
| Uploaded by | BryanOSullivan |
| Built on | ghc-7.6 |
| Distributions | NixOS: 0.2.0.6, FreeBSD: 0.2.0.6 |
Modules
- Data
- Double
Downloads
- double-conversion-0.2.0.6.tar.gz (Cabal source package)
- package description (included in the package)