[Haskell-cafe] Converting from Int to Double

Ketil Malde ketil+haskell at ii.uib.no
Wed Jan 26 08:07:05 EST 2005


Dmitri Pissarenko <mailing-lists at dapissarenko.com> writes:

> 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.

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Haskell-Cafe mailing list