<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 8, 2014 at 3:39 PM, Nicolas Trangez <span dir="ltr"><<a href="mailto:nicolas@incubaid.com" target="_blank">nicolas@incubaid.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Note there's some existing support for this in `base`:<br>
<div><br>
On Sat, 2014-02-08 at 15:06 -0500, Omari Norman wrote:<br>
> but for a short explanation, go into ghci and type:<br>
><br>
> print $ 0.1 + 0.1 + 0.1<br>
<br>
</div>ë print $ (0.1 + 0.1 + 0.1 :: Double)<br>
0.30000000000000004<br>
<br>
ë :m + Data.Fixed<br>
</blockquote><div><br></div><div>Key word there is "Fixed"; deka supports floating point with up to 34 digits of precision but, yes, Data.Fixed does solve some of this problem.</div><div><br></div></div></div></div>