The scientific package

[Tags:benchmark, bsd3, library, test]

Data.Scientific provides a space efficient and arbitrary precision scientific number type.

Scientific numbers are represented using scientific notation. It uses a coefficient c :: Integer and a base-10 exponent e :: Int (do note that since we're using an Int to represent the exponent these numbers aren't truly arbitrary precision). A scientific number corresponds to the Fractional number: fromInteger c * 10 ^^ e.

The main application of Scientific is to be used as the target of parsing arbitrary precision numbers coming from an untrusted source. The advantages over using Rational for this are that:

 > read "1e1000000000" :: Scientific


Dependencies arithmoi (>=0.4.1 && <0.5), array (>=0.1 && <0.6), base (>=4.3 && <4.8), bytestring (==0.10.*), deepseq (==1.3.*), hashable (>=1.1.2 && <1.3), text (>=0.8 && <1.3) [details]
License BSD3
Author Bas van Dijk
Maintainer Bas van Dijk <>
Stability Unknown
Category Data
Home page
Bug tracker
Source repository head: git clone git://
Uploaded Wed May 14 20:21:22 UTC 2014 by BasVanDijk
Distributions Arch:, Debian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 199132 total (96 in the last 30 days)
0 []
Status Docs available [build log]
Successful builds reported [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees