<div dir="ltr">A question, perhaps Stephen&#39;s to answer: apparently IEEE754 defaults to what we&#39;re calling `toNearestOrEven`? Should Swift be using that as the default as well?<div><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 29, 2016 at 7:41 PM, Karl Wagner <span dir="ltr">&lt;<a href="mailto:razielim@gmail.com" target="_blank">razielim@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">OK I’ve incorporated those small things and submitted it for review. We’ve had an initial discussion, incorporated all the feedback, so I think it’s met the bar for a PR 👍<div><br></div><div><a href="https://github.com/apple/swift-evolution/pull/394" target="_blank">https://github.com/apple/swift-evolution/pull/394</a></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Karl</div></font></span><div><div class="h5"><div><br><div><blockquote type="cite"><div>On 29 Jun 2016, at 20:20, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">On Wed, Jun 29, 2016 at 1:07 PM, Stephen Canon<span> </span><span dir="ltr">&lt;<a href="mailto:scanon@apple.com" target="_blank">scanon@apple.com</a>&gt;</span><span> </span>wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><span><br><div><blockquote type="cite"><div>On Jun 29, 2016, at 2:06 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">On Wed, Jun 29, 2016 at 12:12 PM, Stephen Canon via swift-evolution<span> </span><span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span><span> </span>wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><span><br><div><blockquote type="cite"><div>On Jun 29, 2016, at 1:10 PM, Matthew Johnson &lt;<a href="mailto:matthew@anandabits.com" target="_blank">matthew@anandabits.com</a>&gt; wrote:</div><br><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">My criticism of the &#39;</span><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgba(255,255,255,0)">toNearestOrGreatest&#39; still stands though.  I think this name is misleading given the stated semantics.  The name indicates &quot;greater value&quot; not &quot;greater magnitude&quot; which are opposites in the case of negative numbers.</span><br></div></blockquote></div><br></span><div>Yup, I agree.  I think I originally suggested `toNearestTiesAway`.  I’m not tied to that name specifically, but we should be clear that ties go away from zero, not up.</div></div></blockquote><div><br></div><div>Agreed; `toNearestOrAwayFromZero` is the most accurate and consistent description.</div></div></div></div></div></blockquote><br></div></span><div>Worth noting that since this is the defaulted behavior, we can get away with a wordy description.</div></div></blockquote><div><br></div><div>This is really picking nits, but the most common behavior would be best as the first enum case, no? Maybe go roughly from most-value-preserving to least-value-preserving, like so:</div><div><br></div><div>`enum RoundingRule { case toNearestOrAwayFromZero, toNearestOrEven, up, down, towardZero }`</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>– Steve</div></div></blockquote></div></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div></div>