[Haskell-cafe] Where would I find fromInt?

Albert Y. C. Lai trebla at vex.net
Sun Sep 9 20:18:55 EDT 2007


To the tune of the theme song of Ghostbusters:

You've got an Int
But you want Double
Who do you call?
"fromIntegral!"

(The inverse conversion requires you to think about rounding first.)


More information about the Haskell-Cafe mailing list