should double have better precision or greater range?
Michael Zehr
tada at athena.mit.edu
Wed Sep 7 14:15:30 AEST 1988
GRRR! lost the article reference ... sorry guys.
> [comments about doubles deleted]
>One last thing: Would an expression be evaluated more quickly if the RHS
>had variables of type short or type int?
> Michael Steiner
This is extrememly machine dependant. Usually, if you declare something
as type "int", the compiler will use the "natural" data type for the
machine, which will usually be fastest. The only way to tell for sure would
be to time it in various ways, on each machine you plan to use the code on.
If you don't want to go to all that work, you're probably better of just
using "int".
-michael j zehr
More information about the Comp.lang.c
mailing list