On Tue, 21 Aug 2007 18:53:43 +0200, Peter Verswyvelen <[EMAIL PROTECTED]> wrote:

Does a general approach exist to convert any non-constant (Num a) to a
Float? Not using type annotation of course.


Instances of class Integral (Int and Integer) can be converted with fromIntegral.

--
Met vriendelijke groet,
Henk-Jan van Tuyl


--
http://functor.bamikanarie.com
http://Van.Tuyl.eu/
--

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to