Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!aash From: aash@ms.uky.edu ( Aashi Deacon ) Newsgroups: comp.lang.c Subject: Re: Array indexing vs. pointers... Message-ID: <10332@s.ms.uky.edu> Date: 4 Oct 88 00:42:59 GMT References: <836@proxftl.UUCP> <3105@hubcap.UUCP> <1700@dataio.Data-IO.COM> Reply-To: aash@ms.uky.edu ( Aashi Deacon ) Organization: U of Kentucky, Mathematical Sciences Lines: 15 > o Try very hard to replace divides with other operations, as in: > x / 10 > with: > x * .1 > o See if some calculations can be done using integer math. Are these two points contradictory? Thanks for those good hints but I got stopped when I saw this first point. According to theory, '.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? aash aash@ms.uky.edu