[Haskell-cafe] What's NaN?

Yann Golanski yann at kierun.org
Wed May 28 03:14:44 EDT 2008


Quoth PR Stanley on Wed, May 28, 2008 at 08:04:44 +0100
> Hello
> Why does sqrt (-16) return NaN? What is NaN?

NaN stands for Not a Number. 

See the complex library for how to have complex numbers.

-- 
yann at kierun.org             -= H+ =-             www.kierun.org
   PGP:   009D 7287 C4A7 FD4F 1680  06E4 F751 7006 9DE2 6318
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080528/5fa868dd/attachment.bin


More information about the Haskell-Cafe mailing list