I am trying to find the point at which a number in Scratch becomes "Infinity". I have figured out that it is between 10^308.2547155555555555555555555555555555555555555555555555555555555555555555555555555555555555555 and 10^308.2547156, but I'm not sure of the actual number. Is there a specific reason or pattern in the "Infinity" limit?
Last edited by HD123 (2013-01-19 11:22:50)
Offline
When I discovered infinity a while ago I nearly laughed my head off... XD
I think the reason is so Scratch doesn't have to deal with huge numbers, get really laggy and buggy, and maybe even crash (can happen with some programs).
But then, the numbers get huge before the infinity limit (I put in a LOT of nines and it still wasn't even close ), enough to make that stuff happen, so I kind of don't know.
Offline
A double-precision (64-bit) floating point number, which I guess is what Scratch considers every number, can go from −10³⁰⁸ to +10³⁰⁸ - that last number sounds very close to what you're thinking.
This should report "Infinity", just checked:
([10 ^] of [309])
Last edited by technoguyx (2013-01-19 14:26:21)
Offline
I saw this thread and was trying to find the answer when I hit upon this. It was such a freaky phenomenon I had to let the world know.
Offline