QUOTE(h1voltage @ Jun 22 2007, 04:23 AM)
I think the difference derive from facts that in each case you use different type of values (integer/float). Compiler have possibility to optimize first part as integer (100 != 100.0). But I still recive difference even if I use: (x+1.0)*2,0833333333333333333333333333333=<100./(16.0*3.0)>. I ment that compiler optimize this formula to this equation.
QUOTE(Zbyszek @ Jun 29 2007, 09:54 AM)
Ok. I get it. You need to use shift register. If you don't use it then compiler have posibility to put in formula place constant value. I don't know why compiler didn't it in first loop. Now results are the same.