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.)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to