TIP: Click on subject to list as thread! ANSI
echo: cbm
to: Shaun Bebbington
from: frank
date: 2018-04-17 18:49:52
subject: Re: C64 BASIC - what`s faster INT() or %? Plus benefits of DEF FN A()

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: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
SEEN-BY: 57/0 116/102 153/150 250 317/2 3 393/68 633/267 280 640/384 712/620
SEEN-BY: 712/848 770/0 1 3 100 340 772/0 1 210 500
@PATH: 770/3 1 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.