Hi, I have a very strange problem: long lineCos(float degree, long len)
{ volatile float c1,c2; c1 = degree*3.141/180.0; c2 = cos(c1); return (c2*len);
}
And the return value is wrong.For example when the degree=0 then c2=1.25 instead 1.0.A spend man..
↧