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,225 of 53,866   
   Whammo to All   
   Re: C64 BASIC - what's faster INT() or %   
   16 Apr 18 14:08:11   
   
   From: sidciavic@gmail.com   
      
   10 X=INT(64*RND(0)+1)   
      
   Here, X is a defined as a float, so you're using the variable space of a float   
   and explicitly calling the INT function.   
      
   or   
      
   10 X%=64*RND(0)+1   
      
   Here, X% is defined as an integer it uses less space and it only needs to read   
   and write the bytes of an integer.   
      
   --- 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