The standard Haskell's Double uses the standard double-precision arithmetic:
data Double
Double-precision floating point numbers. It is desirable that this type be at least equal in range and precision to the IEEE double-precision type.
Does GHC/Haskell offer somewhere also the extended precision (80-bit) floating point numbers, perhaps using some external library?
As chuff has pointed out, you might want to take a look a the numbers package on hackage. You can install it with
cabal install numbers
. Here is an example:As the documentation states,
showCReal
returns a string showing a given number of typeCReal
with the given number of decimals.