<div dir="ltr">On Wed, Jun 29, 2016 at 1:07 PM, Stephen Canon <span dir="ltr">&lt;<a href="mailto:scanon@apple.com" target="_blank">scanon@apple.com</a>&gt;</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 style="word-wrap:break-word"><span class=""><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 dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</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 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>– Steve</div></div></blockquote></div><br></div></div>