Path: utzoo!attcan!uunet!tektronix!nosun!lfm.fpssun.fps.com!lfm From: lfm@fpssun.fps.com (Larry Meadows) Newsgroups: comp.lang.c Subject: Re: Array indexing vs. pointers... Message-ID: <334@lfm.fpssun.fps.com> Date: 14 Oct 88 17:13:07 GMT References: <836@proxftl.UUCP> <3105@hubcap.UUCP> <1700@dataio.Data-IO.COM> <10332@s.ms.uky.edu> <711@wsccs.UUCP> Reply-To: lfm@lfm.UUCP (Larry Meadows) Organization: FPS Computing, Beaverton,OR Lines: 20 In article <711@wsccs.UUCP> dharvey@wsccs.UUCP (David Harvey) writes: : :For that matter, it is also very difficult to represent 10.0 (I am :assuming you are working with floating point) in any floating point :representation. This is not the case. 10.0 is 8 * 1.25 or 2^3 * 1.01 [base 2]. [P 1s] In fact, all integers between zero and 1111...1 [base 2] (where P is the precision) are exactly representable in base 2 floating point. It is, however, the case that N/10.0 is not necessarily the same as 0.1*N when a binary floating point representation is used. -- Larry Meadows @ FPS ...!tektronix!fpssun!lfm ...!nosun!fpssun!lfm