RE: Uninitialized Variables

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

Derek Parnell wrote:
> >
> > it's not a CPU thing.
> >
> > This works for me...
> >
> > -------------------
> > atom x,y,nan,inf
> > inf = 1e300 * 1e300
> > nan = -(inf / inf) -- ( inf / inf = -nan )
> >
> > ? equal(10,nan)
> > ? not equal(10,nan)
> > ? equal(nan,nan)
> > -------------------
> >
> > my results are:
> > 0
> > 1
> > 1
> >
> >
> > Chris
> 
> Great. I get the same as you. I even get the same when using '=' rather 
> than
> 'equal()'.
> 
> ? 10 = nan
> ? not (10 = nan)
> ? nan = nan
> 
> Chris, what CPU are use running with? Why does Andy get different 
> results?
> 
> 

How odd.
I'm SURE I didn't snip your msg.
If I did, I would have wrote <SNIP>. I always capitalize those tags.

A portion of my post is also missing. I assume that is what was snipped. 
Probably something to do with the auto moderator.

I'll try again...

I get the same results as Andy gets for your example. Like you, I'm also 
using a PIII, so it's not a CPU thing.

This works for me...

-------------------
atom x,y,nan,inf
inf = 1e300 * 1e300
nan = -(inf / inf) -- ( inf / inf = -nan )

? equal(10,nan)
? not equal(10,nan)
? equal(nan,nan)
-------------------

my results are:
0
1
1


Chris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu