Mail Archives: djgpp/1996/12/03/14:23:45
Joe Wright wrote:
> Not so fast. Before the answer, we have the real question: Not why is
> the result 'wrong' but why are they different? Why does i=(int)(f*100);
> yield a different result than f=f*100; i=(int)f; ? Why? Clearly the
> compiler is doing conversions differently in the two cases.
As I said earlier, I'm not seeing any difference here (at least with gcc
2.7.2 under Linux).
--
Erik Max Francis | max AT alcyone DOT com
Alcyone Systems | http://www.alcyone.com/max/
San Jose, California | 37 20 07 N 121 53 38 W
&tSftDotIotE | R^4: the 4th R is respect
"But since when can wounded eyes see | If we weren't who we were"
- Raw text -