int to float problem

Ferenc Wagner wferi@afavant.elte.hu
Sat, 01 Mar 2003 01:37:59 +0100


"Mike T. Machenry" <dskippy@ccs.neu.edu> writes:

> I recently desided I wanted a bunch function to return
> float instead of Int. [...] I found fromInteger but it
> didn't seem to work on the return value of the cardinality
> function for instance.

Try fromIntegral, which works for Int and Integer, too.

                                               Feri.