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?
Also isn't 'Infinity' a concept? How is it possible?
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
Oh I totally didn't see the exception handling in that page, even though I've scrolled down it for several minutes. xD
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.
Gecko.Net says 7F800000 is infinity.
Is it truely the highest value you may choose for floats?
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.