<div dir="ltr">Maybe these packages could be relevant/useful:<div>- <a href="https://github.com/ekmett/rounded">https://github.com/ekmett/rounded</a></div><div>- <a href="https://github.com/ekmett/intervals">https://github.com/ekmett/intervals</a></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 7, 2014 at 4:12 PM, Dominik Peteler <span dir="ltr"><<a href="mailto:haskell@with-h.at" target="_blank">haskell@with-h.at</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list,<br>
<br>
I'm going to implement an interval arithmetic library (following the IEEE P1788) in Haskell and for<br>
that I need support for directed rounding to the nearest floating point<br>
number. I had a quick look at the Decimal package which comes with the<br>
`roundTo` function for rounding to a specified number of decimal places<br>
but it doesn't provide directed rounding.<br>
Is there way to get directed rounding to to the nearest float (maybe<br>
even with machine floats) ?<br>
<br>
I'm also aware of the AERN-* packages but they seem to be unmaintained. At<br>
least there is no version which builds with the current GHC. Does<br>
anybody know something about that ?<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
dominik<br>
</font></span><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Alp Mestanogullari
</div>