<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 18, 2015 at 10:57 PM, Frothy Bits <span dir="ltr"><<a href="mailto:neuralpancake@gmail.com" target="_blank">neuralpancake@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is the behavior I'm seeing actually related to a bug in parsec? </blockquote></div><br></div><div class="gmail_extra">If you're interested in digging deeper, I'd say look at the output, not the input end. Almost certainly the machine floating-point double for 3.14 and (3.14+1.0) are identical across ghc, C, and python.<br><br></div><div class="gmail_extra">What's not identical is how different languages choose to display 4.14.<br><br></div><div class="gmail_extra">C and python do some display rounding so you don't see the issue. The display algorithm in Haskell probably goes for the simple, naive approach.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">-- Kim-Ee</div></div>
</div></div>