[Haskell-cafe] Floating point madness

Duncan Coutts duncan.coutts at worcester.oxford.ac.uk
Mon Aug 29 17:08:12 EDT 2005

On Mon, 2005-08-29 at 16:59 -0400, Mark Goldman wrote:
> I have looked around the net, and in some reference books and I cannot
> find a function to convert a Float to a Double directly.  Can there
> truly be no such animal in the Prelude/standard libs?

In the Prelude there is

realToFrac :: (Fractional b, Real a) => a -> b

and (Float -> Double) is an instance of this type.


More information about the Haskell-Cafe mailing list