RE: VERY strange problem? HELP!

new topic     » topic index » view thread      » older message » newer message

>From: CoJaBo <guest at RapidEuphoria.com>
>Reply-To: EUforum at topica.com
>To: EUforum at topica.com
>Subject: VERY strange problem? HELP!
>Date: Fri, 25 Jun 2004 18:44:00 -0700
>

>posted by: CoJaBo <cojabo at suscom.net>
>
<snip>
>I tried to create the problem in another program, but got another
>strange error:
>
>[ex.err]
>...\New Windows App.exw:11 in procedure w_onOpen()
>type_check failure, n is 486
>     self = 3
>     event = 4
>     params = {}
>     o = 6
>
>...

time() returns a decimal number that could possibly be something like 
4.803424. Multiplying by 100 gives 480.3424 plus rand(100)->6 making 
486.3424. You are trying to assign this result to an integer. The 
interpreter prints out what it should be, and not what it really is that you 
are assigning. It can be a bit confusing, yes. You can fix it by adding a 
floor() around the entire expression.

<snip>

~[ WingZone ]~
http://wingzone.tripod.com/

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu