FW: FW: Typed TemplateHaskell?

Ian Lynagh igloo at earth.li
Thu Jun 7 21:19:21 CEST 2012


On Mon, Jun 04, 2012 at 05:03:24PM +0000, Simon Peyton-Jones wrote:
> Anyone have any idea why numrun012 might fail on 64-bit Ubuntu?

logBase 2 won't return exact results, due to the errors in Double
arithmetic. For example,
    main :: IO ()
    main = print (logBase 2 (2147483648 :: Double))
prints
    31.000000000000004
for me on x86_64 Linux.

I don't know why Jacques would get a different result, though.


Thanks
Ian




More information about the Cvs-ghc mailing list