On Fri, May 7, 2010 at 12:14 PM, Chris Rebert <span dir="ltr"><<a href="mailto:clp2@rebertia.com">clp2@rebertia.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">Personally, I find the following the most unintuitive:<br></div></div>
divmod(-11, 3) == (-4, 1)<br>
<br>
So, we overshoot -11 and then add 1 to go back to the right place?<br>
That violates my intuitive thought that abs((n//d)*d) <= abs(n) ought to hold.<br></blockquote><div><br>Haha, really? *gives it a try* Oh wow...<br><br>Yeah. I don't like that either.<br><br>Cheers,<br>Xav <br></div>
</div>