Number conversions, like floats to doubles

Ben Escoto bescoto at stanford.edu
Sat Nov 8 18:21:26 EST 2003


On Sun, 09 Nov 2003 01:11:09 +0100
"Marcin 'Qrczak' Kowalczyk" <qrczak at knm.org.pl> wrote:
> realToFrac :: (Fractional b, Real a) => a -> b
> 
> It is actually defined as fromRational . toRational but GHC knows to
> generate specialized code for particular types.

Oops, I was looking through the prelude but somehow missed these
functions.  Thank you.


-- 
Ben Escoto


More information about the Haskell mailing list