Xref: utzoo comp.theory:363 comp.misc:8265 comp.lang.misc:4198 Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!psuvax1!news From: flee@shire.cs.psu.edu (Felix Lee) Newsgroups: comp.theory,comp.misc,comp.lang.misc Subject: Re: Modulus Message-ID: Date: 22 Feb 90 14:39:21 GMT References: <12099@goofy.megatest.UUCP> Sender: news@cs.psu.edu (Usenet) Organization: Penn State University Computer Science Lines: 11 On the issue of -a div b = -(a div b) [1] versus a div b = floor(a/b) [2] I do prefer [2] over [1]. The reason I'm mostly tolerant of either case is because I remember writing expressions like abs(a) div b * sgn(a) to simulate [1], but I can't remember the context; it could probably have been better done differently anyway. -- Felix Lee flee@shire.cs.psu.edu *!psuvax1!flee