scientific: Numbers represented using scientific notation

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

Data.Scientific provides the number type Scientific. Scientific numbers are arbitrary precision and space efficient. They are represented using scientific notation. The implementation uses a coefficient c :: Integer and a base-10 exponent e :: Int. A scientific number corresponds to the Fractional number: fromInteger c * 10 ^^ e.

Note that since we're using an Int to represent the exponent these numbers aren't truly arbitrary precision. I intend to change the type of the exponent to Integer in a future release.

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
1.0e1000000000

Properties

Versions 0.0.0.0, 0.0.0.1, 0.0.0.2, 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.3.1.0, 0.3.2.0, 0.3.2.1, 0.3.2.2, 0.3.3.0, 0.3.3.1, 0.3.3.2, 0.3.3.3, 0.3.3.4, 0.3.3.5, 0.3.3.6, 0.3.3.7, 0.3.3.8, 0.3.4.0, 0.3.4.1, 0.3.4.2, 0.3.4.3, 0.3.4.4, 0.3.4.5, 0.3.4.6, 0.3.4.7, 0.3.4.8, 0.3.4.9, 0.3.4.10, 0.3.4.11, 0.3.4.12, 0.3.4.13, 0.3.4.14, 0.3.4.15, 0.3.5.0, 0.3.5.1, 0.3.5.2, 0.3.5.3, 0.3.6.0, 0.3.6.1, 0.3.6.2, 0.3.7.0, 0.3.7.0, 0.3.8.0
Change log changelog
Dependencies base (>=4.5 && <4.16), binary (>=0.5.1 && <0.9), bytestring (>=0.9 && <0.12), bytestring-builder (>=0.10.4 && <0.11), containers (>=0.4.2.1 && <0.7), deepseq (>=1.3.0.0 && <1.5), hashable (>=1.2.7.0 && <1.4), integer-gmp, integer-logarithms (>=1.0.3.1 && <1.1), integer-simple, invalid-cabal-flag-settings (<0), primitive (>=0.7.1.0 && <0.8), template-haskell (>=2.8 && <2.18), text (>=1.2.3.0 && <1.3) [details]
License BSD-3-Clause
Author Bas van Dijk
Maintainer Bas van Dijk <v.dijk.bas@gmail.com>
Category Data
Home page https://github.com/basvandijk/scientific
Bug tracker https://github.com/basvandijk/scientific/issues
Source repo head: git clone git://github.com/basvandijk/scientific.git
Uploaded by phadej at 2021-05-20T18:38:44Z

Modules

[Index] [Quick Jump]

Flags

Automatic Flags
NameDescriptionDefault
bytestring-builder

Depend on the bytestring-builder package for backwards compatibility.

Disabled
integer-simple

Use the integer-simple package instead of integer-gmp

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees