<div dir="ltr">On 9 October 2013 15:43, Mark Lacey <span dir="ltr"><<a href="mailto:mark.lacey@apple.com" target="_blank">mark.lacey@apple.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5"><span style="color:rgb(34,34,34)">No. The issue is that you are taking a double (8.1), converting it to float, and then subtracting the original double from it. The rounding error introduced from the conversion is larger than the epsilon value that you are comparing to, so the first comparison (a-8.1 >= FLT_EPSILON) is always true.</span></div>
</div></blockquote><div></div></div><br></div><div class="gmail_extra">Yes, my bad, FLT_EPSILON ends up as a double constant, so not denormalized, but the error introduced is larger than epsilon anyway.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">--renato</div></div>