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,230 of 53,866   
   John H. Guillory to All   
   Re: C64 BASIC - what's faster INT() or %   
   17 Apr 18 14:46:19   
   
   From: nospam.John.H..Guillory@f60.n396.z1.binkp.net   
      
    SB> For clarification, which is faster?   
    SB> 10 X=INT(64*RND(0)+1)   
    SB> or   
    SB> 10 X%=64*RND(0)+1   
      
   Just guessing, I'd say the second one, or 10 X%=64*RND(0)+1   
   because in the first, your converting 64*RNND(0)+1 to an integer, then   
   converting back to a single precision decimal point value.   
      
   --- 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