Login
Back to forumSee the full topicGo to last reply

Posted By

SVS
on 2017-02-14
07:29:37
 Re: BASIC Balloon Breaker

With this program:

10 ti$="000000": for i=1 to 90000: if i%>0 then print "ciao"
20 next
30 print ti$

I obtain 7:15, while the same program but with the variable "iz" instead of "i%", the time is 7:13.
IMO the reason of the anomalies you discovered, is that math operations are managed by O.S. always as FP. The integers are converted into FP, then back into integer. In the above program there is no math operation (only comparison), while in RKSoft' one yes (i%=i%+1).



Back to top


Copyright © Plus/4 World Team, 2001-2024