Re: VERY strange problem? HELP!

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

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