WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: γRB on July 09, 2013, 08:31:00 PM

Title: Infinity
Post by: γRB on July 09, 2013, 08:31:00 PM
Why does 'infinity' freeze you when you play around with coordinates? i mean, I played with coordinates, OBVIOUSLY infinity would freeze you, but generally..Why?
Title: Re: Infinity
Post by: γRB on July 09, 2013, 09:20:00 PM
Also isn't 'Infinity' a concept? How is it possible?
Title: Re: Infinity
Post by: XeR on July 09, 2013, 10:23:55 PM
Quote from: γRB on July 09, 2013, 08:31:00 PM
Why does 'infinity' freeze you when you play around with coordinates? i mean, I played with coordinates, OBVIOUSLY infinity would freeze you, but generally..Why?
I don't get why you ask this question, if you already understand why it freezes.

Quote from: γRB on July 09, 2013, 09:20:00 PM
Also isn't 'Infinity' a concept? How is it possible?
https://en.wikipedia.org/wiki/IEEE_754#Exception_handling
Title: Re: Infinity
Post by: γRB on July 09, 2013, 10:31:48 PM
Oh I totally didn't see the exception handling in that page, even though I've scrolled down it for several minutes. xD
Title: Re: Infinity
Post by: dcx2 on July 10, 2013, 05:44:48 PM
Infinity is a special bit pattern (it can actually be signed, too).  It is one of a few NaN's (Not a Number).  Once a float becomes NaN, the result of any computation using that float will also be NaN.  NaN + ? = NaN, NaN / ? = NaN, etc.

Because the NaN is "infectious", once one is generated all calculations are basically garbage.  How do you do NaN damage to someone's health?  This is why using a NaN in a calculation will often trigger floating point exceptions.
Title: Re: Infinity
Post by: Bully@Wiiplaza on July 28, 2013, 10:16:47 AM
Gecko.Net says 7F800000 is infinity.
Is it truely the highest value you may choose for floats?
Title: Re: Infinity
Post by: dcx2 on July 28, 2013, 03:31:03 PM
Infinity is Not a Number.  So it's not "the highest value you may choose for floats".  If you choose this value, you will probably break whatever calculation you were trying to do.