[Haskell-beginners] How to improve the accuracy of floating point calculation?
kc1956 at gmail.com
Wed Feb 6 00:08:43 CET 2013
0.1 cannot be represented exactly in floating point.
0.5 can be represented exactly. Why?
On Tue, Feb 5, 2013 at 2:41 PM, yi lu <zhiwudazhanjiangshi at gmail.com> wrote:
> I found that in ghci, I input
> and run, I get a result of
> But, as you know, it is not the exact answer.
> So, I wonder if there is something I can do to achieve a better performance
> and get [0.1,0.2,0.3,0.4..] as the result.
> Beginners mailing list
> Beginners at haskell.org
More information about the Beginners