Re: VERY strange problem? HELP!

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

Thanks! The problem was that it was defined as an ATOM. I thought
it was an INT, but I had been looking at another similirely named
integer (which explains why time()*100+rand(99) seemed to have been
returning an integer). But that still doesn't explain why it ?time()
once displayed -3812688, or why the problem only exists around this
time (it worked fine this morning!). You will be added to the credits
screen for the program (for if I ever release it).

Pete Lomax wrote:
> 
> On Sat, 26 Jun 2004 14:41:25 -0700, CoJaBo <guest at RapidEuphoria.com>
> wrote:
> 
> >On Win32, time()*100+rand(99) can only be an integer.
> FALSE. Try:
> 
> ?integer(1.1*100)
> 
> IEEE 754 floats are not designed for this handling. This is a hardware
> feature, nothing to do with RDS Euphoria, or any other software.
> 
> As you have found, if you had defined n as an integer in the first
> place, rather than an atom or object, the error would have occurred
> immediately, and I think you would have figured it out much quicker.
> 
> Regards,
> Pete
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu