<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 14, 2016, at 10:36 PM, Stephen Canon <<a href="mailto:scanon@apple.com" class="">scanon@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Erica, thanks for the feedback.</div><br class=""><blockquote type="cite" class="">On Apr 14, 2016, at 6:29 PM, Erica Sadun <<a href="mailto:erica@ericasadun.com" class="">erica@ericasadun.com</a>> wrote:<br class=""></blockquote><div class=""><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">* I do use % for floating point but not as much as I first thought before I started searching through my code after reading your e-mail. But when I do use it, it's nice to have a really familiar symbol rather than a big word. What were the ways that it was used incorrectly? Do you have some examples?</div></div></div></blockquote><div class=""><br class=""></div>As it happens, I have a rationale sitting around from an earlier (internal) discussion:<br class=""><div class=""><br class=""></div></div></div></div></blockquote><div><br class=""></div><div>Thanks. That makes plenty of sense although I do still think the name is long and hard to discover compared to fmod[1] and %.</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">* I don't quite get how equatable is going to work. Do you mind explaining that in more detail?</div></div></div></blockquote><br class=""></div><div class="">I’m not totally sure what your question is. Are you asking how FloatingPoint will conform to Equatable, or how the Equatable protocol will work?</div></div></div></blockquote><div><br class=""></div></div>Given the many words and passionate articles about how difficult it is to perform floating point comparisons, <div class="">for example, <a href="https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/" class="">https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/</a>, </div><div class="">I'm just curious as to what approach you've settled on. The topic has come up on-list quite a few times.</div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div><div class="">[1] Nearly all of what I *thought* I was doing with % did turn out to be fmod (<i class="">CGFloat a = fmodf(stepAngle * i, 360.0)</i>)</div><div class=""> so there's that</div></body></html>