Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!brahms!weemba From: weemba@brahms.BERKELEY.EDU (Matthew P. Wiener) Newsgroups: net.lang.c,net.arch Subject: Re: Integer division Message-ID: <11762@ucbvax.BERKELEY.EDU> Date: Sun, 9-Feb-86 00:58:43 EST Article-I.D.: ucbvax.11762 Posted: Sun Feb 9 00:58:43 1986 Date-Received: Tue, 11-Feb-86 05:50:59 EST References: <11603@ucbvax.BERKELEY.EDU> <4917@alice.UUCP> <11671@ucbvax.BERKELEY.EDU> <1671@utah-gr.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: weemba@brahms.UUCP (Matthew P. Wiener) Organization: University of California, Berkeley Lines: 13 Xref: watmath net.lang.c:7811 net.arch:2492 In article <1671@utah-gr.UUCP> thomas@utah-gr.UUCP (Spencer W. Thomas) writes: >At least C calls it '%', and not 'MOD', as in Pascal. Unless someone >tells you that % means MOD, you have some small chance of realizing that >it might not do exactly what you want. ?????? >I would still rather have (-1)/1000000000000 = 0, not -1. What about (-999999999999)/1000000000000 ? What about (+999999999999)/1000000000000 ? ucbvax!brahms!weemba Matthew P Wiener/UCB Math Dept/Berkeley CA 94720