home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.cbm      Discussion about Commodore micros      53,866 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 52,229 of 53,866   
   frank to Shaun Bebbington   
   Re: C64 BASIC - what's faster INT() or %   
   17 Apr 18 18:49:52   
   
   From: frank@invalid.net   
      
   Shaun Bebbington  wrote:   
   > For clarification, which is faster?   
   >   
   > 10 X=INT(64*RND(0)+1)   
   >   
   > or   
   >   
   > 10 X%=64*RND(0)+1   
   >   
      
   you can enclose the two statements one at a time inside a 200-300 counts   
   FOR-NEXT cycle and easily verify yourself which is faster.   
   Frank   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca