Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ike Naar Newsgroups: comp.programming Subject: Re: calculating the power of a fixed point Date: Fri, 23 Sep 2011 22:46:44 +0000 (UTC) Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <2d2836aa-2443-4e56-9fef-d38e12c60dcf@z41g2000yqb.googlegroups.com> <1fem4l4q3rp2a$.dgq616viyovr.dlg@40tude.net> <717d2094-8977-4914-842f-5727e063f686@p25g2000pri.googlegroups.com> <79114815-2bea-46d6-a3e6-273bdda34d14@e3g2000pri.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Fri, 23 Sep 2011 22:46:44 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="mX321DN/BskaPeu9dpMNqQ"; logging-data="6986"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jlKAde7LdzQzYN4q9T9Uu" User-Agent: slrn/0.9.9p1 (NetBSD) Cancel-Lock: sha1:QF218Y1PuRuZryzHs+rU6T5YPYE= Xref: x330-a1.tempe.blueboxinc.net comp.programming:856 On 2011-09-23, Robin Vowels wrote: > On Sep 23, 9:52?pm, Ike Naar wrote: >> On 2011-09-23, Robin Vowels wrote: >> >> > On Sep 20, 10:36?pm, "Dmitry A. Kazakov" >> > wrote: >> >> Fixed-point arithmetic is exact. >> >> > Not really. ?Addition, subtraction, and multiplication are. >> > However, division is not. >> >> What is the exact result of 1.6 * 1.6 (one decimal place) ? > > The exact result is 2.56. Why would you drop one digit? Isn't that what fixed-point arithmetic is about? Having a fixed number of digits after the decimal (or binary) point?