Xref: utzoo sci.math.num-analysis:1106 comp.lang.misc:5463 Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!cica!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!mips!pacbell.com!pacbell!osc!jgk From: jgk@osc.COM (Joe Keane) Newsgroups: sci.math.num-analysis,comp.lang.misc Subject: Re: modulo/remainder: it's all division Keywords: modulus Message-ID: <3778@osc.COM> Date: 9 Sep 90 11:38:41 GMT References: <190@validgh.com> <2108@bnlux0.bnl.gov> Reply-To: jgk@osc.UUCP (Joe Keane) Followup-To: sci.math.num-analysis Organization: Versant Object Technology, Menlo Park, CA Lines: 9 In article <2108@bnlux0.bnl.gov> thomas@max.UUCP (Richard A. Thomas) writes: > Hewlett Packard's Rocky Mountain Basic gives you a choice. It has both a >MOD and a MODULO. Yeah, my HP-71's `Minimal' Basic has not one but three of the functions: MOD(X,Y) `modulus': same sign as Y, quotient is the more negative one RMD(X,Y) `remainder': same sign as X; the quotient is closer to zero RED(X,Y) `reduction': the nearest quotient, the even one if halfway between