[Haskell-cafe] ieee 754
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.
On Sun, Jun 22, 2008 at 9:37 AM, Sean McLaughlin <seanmcl at gmail.com> wrote:
> 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
> "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,
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe