Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!usc!sdd.hp.com!elroy.jpl.nasa.gov!ames!sgi!shinobu!odin!bruceh From: bruceh@sgi.com (Bruce R. Holloway) Newsgroups: comp.arch Subject: Re: Division by zero Message-ID: <1990Nov30.203244.27902@odin.corp.sgi.com> Date: 30 Nov 90 20:32:44 GMT References: <897@sibyl.eleceng.ua.OZ> Sender: news@odin.corp.sgi.com (Net News) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 24 In article khb@chiba.Eng.Sun.COM (Keith Bierman fpgroup) writes: > >In article aglew@crhc.uiuc.edu (Andy Glew) writes: > > Hmmm.... what should a spreadsheet do when the user has said to > divide by 0? > >If memory serves, the solution is already published, in the IEEE spec, right? > +Inf x is positive > x/0 == NaN x is zero > -Inf x is negative This is a little disappointing, and would disappoint your calculus teacher, since you don't know whether the denominator approached zero from the right or from the left. It is reassuring to note that dividing by -0 produces > -Inf x is positive > x/-0 == NaN x is zero > +Inf x is negative Regards, bruceh