RE: VERY strange problem? HELP!

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

Elliott S. de Andrade wrote:
> 
> >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.

On Win32, time()*100+rand(99) can only be an integer. At the time this
was hapening, a hacker broke into my computer. I think this might have
had somthing to do with it. I also found time() returning huge negetive
numbers (like -3812688).


> 
> <snip>
> 
> ~[ WingZone ]~
> <a href="http://wingzone.tripod.com/">http://wingzone.tripod.com/</a>
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu