[Haskell-cafe] Directed rounding in haskell ?

Dominik Peteler haskell at with-h.at
Fri Apr 11 11:37:51 UTC 2014


Thank you for your response.
I had a quick look at it but I'll probably go with some MPFR binding
first.
Maybe I'll add support for it later.

Regards

Dominik



On Mon 2014-04-07 21:07, Sterling Clover wrote:
> You can set the rounding mode directly with ieee-utils.
> 
> Apparently it doesn't compile anymore, so someone has uploaded a temporary
> replacement: http://hackage.haskell.org/package/ieee-utils-tempfix-0.4.0.1
> 
> The primary maintainer of the original package left the haskell community
> some time ago. (I contributed some additional code many years ago). Michal
> Konecny -- would you be interested in taking over maintainership?
> 
> -s
> 
> On 4/7/14, 10:12 AM, Dominik Peteler wrote:
> >Hello list,
> >
> >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 ?
> >
> >Regards
> >
> >dominik
> >
> >
> >_______________________________________________
> >Haskell-Cafe mailing list
> >Haskell-Cafe at haskell.org
> >http://www.haskell.org/mailman/listinfo/haskell-cafe
> 

> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140411/a2413717/attachment.sig>


More information about the Haskell-Cafe mailing list