qd: double-double and quad-double number type via libqd
This package supports both a double-double datatype (approx. 32 decimal digits) and a quad-double datatype (approx. 64 decimal digits), using libqd (which is implemented in C++ with C and Fortran wrappers). To compile this package you need libqd to be installed.
and Numeric.QD.DoubleDouble.DoubleDouble
are strict tuples of Numeric.QD.QuadDouble.QuadDouble
CDouble
s, with instances of:
, BinDecode
, DecimalFormat
, Eq
, Floating
, Fractional
,
Num
, Ord
, Read
, Real
, RealFrac
, Show
, Storable
.Typeable
Additional note: libqd depends on 64bit doubles, while some FPU architectures use 80bit. When using the Unsafe modules this might cause erroneous results; the Safe modules (used by the instances above) set and restore the FPU flags in foreign code to avoid race conditions from pre-emptive Haskell threading.
The
instances have been removed in this release as they were
mostly broken: RealFloat
semantics are for fixed-precision numbers.RealFloat
Versions | 0.1, 0.2, 0.4, 0.4.1, 1.0, 1.0.2.1 |
---|---|
Dependencies | base (==4.*), floatshow (==0.2.*) [details] |
License | BSD-3-Clause |
Author | Claude Heiland-Allen |
Maintainer | claudiusmaximus@goto10.org |
Category | Math |
Uploaded | by ClaudeHeilandAllen at Fri Jun 10 09:20:55 UTC 2011 |
Distributions | NixOS:1.0.2.1 |
Downloads | 2104 total (7 in the last 30 days) |
Rating | (no votes yet) [estimated by rule of succession] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] Hackage Matrix CI |
Downloads
- qd-1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)