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

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.

--- Mystic BBS v1.12 A38 2018/01/01 (Windows/32)
* Origin: KF5QEO's Shack (1:396/60)
SEEN-BY: 15/0 19/36 34/999 90/1 116/18 123/140 153/7715 218/700 220/60 222/2
SEEN-BY: 230/150 240/1120 250/1 261/38 100 266/404 512 267/155 275/100
SEEN-BY: 280/1027 282/1031 1056 291/1 111 320/119 219 340/400 342/13 393/68
SEEN-BY: 396/45 633/267 280 640/384 712/620 848 770/1 801/161 189 2320/100 105
SEEN-BY: 3634/12 5020/1042
@PATH: 396/60 340/400 261/38 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™.