Path: utzoo!utgpu!attcan!uunet!lll-winken!arisia!quintus!ok From: ok@quintus.uucp (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: DIV and MOD ( was: Something IBM did right ) Message-ID: <643@quintus.UUCP> Date: 8 Nov 88 02:24:50 GMT References: <11529@bellcore.bellcore.com> <972@goofy.megatest.UUCP> Sender: news@quintus.UUCP Reply-To: ok@quintus.UUCP (Richard A. O'Keefe) Organization: Quintus Computer Systems, Inc. Lines: 9 In article <972@goofy.megatest.UUCP> djones@megatest.UUCP (Dave Jones) writes: This is an issue which has been thrashed out many times over the years. Back issues of SigPlan Notices are a good place to look. As Every Schoolboy Knows, there are at least three sensible definitions of integer division/remainder, all of which agree which divisor and dividend are positive. Common Lisp provides all three, and a fourth, also sensible. Note that the Pascal standard does not define integer division and remainder for non-positive divisors.