[Haskell-cafe] Word32 to Int converions

Bernard Pope bjpop at cs.mu.OZ.AU
Wed Jul 20 04:00:38 EDT 2005


On Wed, 2005-07-20 at 11:43 +0200, yin wrote:
> hello,
> 
> how do I convert an Word32 (or WordXYZ) to Int, or Integer, or Float,
> ...? The Int conversion is the priority.
> 
> Thanks.
> 
> Matej 'Yin' Gagyi

fromIntegral to convert to an instance of Integral, such as Int, Integer
etc

Cheers,
Bernie.



More information about the Haskell-Cafe mailing list