RE: VERY strange problem? HELP!
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jun 26, 2004
- 494 views
>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/