Path: utzoo!attcan!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond From: diamond@csl.sony.JUNET (Norman Diamond) Newsgroups: comp.lang.c Subject: Re: Array indexing vs. pointers... Message-ID: <10029@socslgw.csl.sony.JUNET> Date: 6 Oct 88 01:39:54 GMT References: <836@proxftl.UUCP> <3105@hubcap.UUCP> <1700@dataio.Data-IO.COM> <10332@s.ms.uky.edu> Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 17 In article <10332@s.ms.uky.edu>, aash@ms.uky.edu ( Aashi Deacon ) writes: -> o Try very hard to replace divides with other operations, as in: -> x / 10 -> with: -> x * .1 > > ... '.1' cannot be represented exactly as a floating > point number because in base2 it is irrational. Wouldn't then the > first be better in this case? In C, efficiency is more important than correctness. Haven't you also been following the other disputes in this news group? -- ------------------------------------------------------------------------------- The above opinions are my own. | Norman Diamond If they're also your opinions, | Sony Computer Science Laboratory, Inc. you're infringing my copyright. | diamond%csl.sony.jp@relay.cs.net