[Haskell-cafe] Converting from Int to Double

Dmitri Pissarenko mailing-lists at dapissarenko.com
Wed Jan 26 14:51:21 EST 2005


>> How can I convert an Int into a Double?
>
> You don't convert to, you convert from :-)
> The function 'fromIntegral' is probably what you want.

And what function can I use to convert from Double to Int (the inverse of
fromIntegral) ?

TIA

Dmitri Pissarenko
--
Dmitri Pissarenko
Software Engineer
http://dapissarenko.com



More information about the Haskell-Cafe mailing list