with float go the #4000 not with #1200.
no float go the with #1200.
why?
no float go the with #1200.
why?
- Code:
include "cpc6128.ccz80";
array byte xf[5];
array byte yf[5];
array byte gradf[5];
array byte wertf[5];
word i,zaehler;
byte a;
zaehler=360;
deg();
atof(wertf,"170.0");
mode(2);
for (i = 0; i <= zaehler; i=i+5)
{
fcpy(xf,mul(sin(wtof(gradf,i)),wertf));
fcpy(yf,mul(cos(wtof(gradf,i)),wertf));
move(320,200);
drawr(ftow(xf),ftow(yf));
}
move(10,10);
drawr(520,400);
clearinput();
while(!(a=inkey()));
return;