double-conversion: Fast conversion between single and double precision floating point and text

[ bsd2, bsd3, library, text ] [ Propose Tags ]
This version is deprecated.

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 slower than the Text versions; roughly half the speed. (This seems to be due to the cost of allocating ByteString values via malloc.)

Builder versions are slower on single value, but they are much faster on large number of values (up to 50x 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

NameDescriptionDefault
developer

operate in developer mode

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

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.9 && <5), bytestring (>=0.10.2.0), ghc-prim, text (>=0.11.0.8 && <2) [details]
License BSD-3-Clause
Author Bryan O'Sullivan <bos@serpentine.com>
Maintainer Bryan O'Sullivan <bos@serpentine.com>
Revised Revision 2 made by phadej at 2022-11-19T08:55:55Z
Category Text
Home page https://github.com/Haskell-mouse/double-conversion
Bug tracker https://github.com/Haskell-mouse/double-conversion/issues
Source repo head: git clone https://github.com/Haskell-mouse/double-conversion
Uploaded by Haskell_Mouse at 2022-01-28T11:02:41Z
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 33 direct, 7742 indirect [details]
Downloads 50246 total (580 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-01-28 [all 1 reports]

Readme for double-conversion-2.0.3.0

[back to package description]

Welcome to double-conversion

double-conversion is a fast Haskell library for converting between double precision floating point numbers and text strings. It is implemented as a binding to the V8-derived C++ double-conversion library.

Join in!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/bos/double-conversion.git

There's also a Mercurial mirror:

  • hg clone https://bitbucket.org/bos/double-conversion

(You can create and contribute changes using either git or Mercurial.)

Authors

This library is written and maintained by Bryan O'Sullivan, bos@serpentine.com.