Array indexing vs. pointers...
Norman Diamond
diamond at csl.sony.JUNET
Thu Oct 6 11:39:54 AEST 1988
In article <10332 at s.ms.uky.edu>, aash at 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 at relay.cs.net
More information about the Comp.lang.c
mailing list