[Haskell-cafe] Exception for NaN

Luke Palmer lrpalmer at gmail.com
Fri May 13 22:48:35 CEST 2011


On Thu, May 12, 2011 at 5:50 PM, Daniel Fischer <
daniel.is.fischer at googlemail.com> wrote:

> Prelude Data.List> maximum [0,-1,0/0,-5,-6,-3,0/0,-2]
> 0.0
> Prelude Data.List> minimum [0,-1,0/0,-5,-6,-3,0/0,-2]
> -2.0
> Prelude Data.List> sort [0,-1,0/0,-5,-6,-3,0/0,-2]
> [-6.0,-5.0,-2.0,NaN,-3.0,NaN,-1.0,0.0]
>

Wow, that's the best example of NaN poison I've seen.

Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110513/67c367b3/attachment.htm>


More information about the Haskell-Cafe mailing list