Useful Numeric Functions

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Mon Mar 14 05:55:47 EST 2005


Ashley Yakeley <ashley at semantic.org> writes:

> -- | similar idea to "fromIntegral"
> fromReal :: (Real a,Fractional b) => a -> b
> fromReal = fromRational . toRational

this is already present under the name realToFrac.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Libraries mailing list