[Haskell-cafe] Convert Double to Data.Fixed

Albert Y. C. Lai trebla at vex.net
Thu Dec 29 19:35:59 CET 2011


On 11-12-26 10:55 AM, Eugene Kirpichov wrote:
> How do I most efficiently convert a Double to a Data.Fixed?

Double is an instance of Real, Fixed E12 is an instance of Fractional, 
they are eligible for realToFrac.

Similarly for many time types.



More information about the Haskell-Cafe mailing list