[Haskell-cafe] ieee 754

Lennart Augustsson lennart at augustsson.net
Sun Jun 22 12:21:34 EDT 2008


Haskell does not allow you to change rounding mode, NaN signallng mode, etc.
But otherwise Haskell on modern platforms conforms to IEEE 754.

  -- Lennart

On Sun, Jun 22, 2008 at 9:37 AM, Sean McLaughlin <seanmcl at gmail.com> wrote:
> Hello,
>
>  I'm considering using Haskell for a numerical application.  However,
> I need to rely
> on IEEE 754 standards being implemented correctly.  What is the
> current state of 754 in Haskell?
> The definition has this paragraph, which makes me suspect Haskell is
> not appropriate for this
> application:
>
> "The default floating point operations defined by the Haskell Prelude
> do not conform to current language independent arithmetic (LIA)
> standards. These standards require considerably more complexity in the
> numeric structure and have thus been relegated to a library. Some, but
> not all, aspects of the IEEE floating point standard have been
> accounted for in Prelude class RealFloat."
>
> Thank you,
>
> Sean
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list