[Haskell-cafe] Directed rounding in haskell ?
haskell at with-h.at
Mon Apr 7 14:12:31 UTC 2014
I'm going to implement an interval arithmetic library (following the IEEE P1788) in Haskell and for
that I need support for directed rounding to the nearest floating point
number. I had a quick look at the Decimal package which comes with the
`roundTo` function for rounding to a specified number of decimal places
but it doesn't provide directed rounding.
Is there way to get directed rounding to to the nearest float (maybe
even with machine floats) ?
I'm also aware of the AERN-* packages but they seem to be unmaintained. At
least there is no version which builds with the current GHC. Does
anybody know something about that ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: not available
More information about the Haskell-Cafe