[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-cafe
Subject:    Re: [Haskell-cafe] Converting from Int to Double
From:       Dmitri Pissarenko <mailing-lists () dapissarenko ! com>
Date:       2005-01-26 19:51:21
Message-ID: 20050126205121.9numaz4gc84ksggk () confixx ! p15142389 ! pureserver ! info
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic