<html><head><base href="x-msg://167/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'">What do Pascal and Modula-2 and Oberon do?  M3 is in the same family...</font></div>
<br><div><div>On 17 Jan 2010, at 04:36, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Modula-3 apparently specifies integer division as rounding down.<br><a href="http://www.modula3.com/cm3/doc/reference/arithmetic.html">http://www.modula3.com/cm3/doc/reference/arithmetic.html</a><br><br>C used to leave it unspecified. So it could be fast.<br>Fortran rounded to zero.<br>C's ldiv function rounds to zero.<br>C now rounds to zero with C99.<br>  The rationale was that nobody using Fortran seemed to mind.<br>Java apparently rounds toward zero.<br>C# apparently rounds toward zero.<br><br><br>I'm assuming we are stuck being different here?<br><br> - Jay<br><br></div></span></blockquote></div><br></body></html>