Article View: comp.theory
Article #2074Re: Modulus
From: Felix Lee
Date: Thu, 22 Feb 1990 14:39
Date: Thu, 22 Feb 1990 14:39
11 lines
792 bytes
792 bytes
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
Technical Details
Message-ID:
<Ee8g#k@cs.psu.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!psuvax1!newsReferences:
<Er$cfg@cs.psu.edu> <12099@goofy.megatest.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <Ee8g#k@cs.psu.edu> Date: 22 Feb 90 14:39:21 GMT References: <Er$cfg@cs.psu.edu> <12099@goofy.megatest.UUCP> Sender: news@cs.psu.edu (Usenet) Organization: Penn State University Computer Science Lines: 11