[Haskell-cafe] double2Float is faster than (fromRational .
toRational)
Bulat Ziganshin
bulat.ziganshin at gmail.com
Thu May 27 13:59:54 EDT 2010
Hello Daniel,
Friday, May 21, 2010, 11:55:35 PM, you wrote:
> xf = (fromRational $ toRational xd) :: Float
> xf = double2Float xd
> am still surprised how often such kinds of unobvious problems occur
> while programming in Haskell
does it mean that all other languages you are used doesn't have such
problem or that you are an inexperienced programmer? :)
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list