This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-19 11:19:30

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

When Does A Number Become "Infinity"

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)


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#2 2013-01-19 11:34:02

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: When Does A Number Become "Infinity"

well, infinity isn't technically a number that's possible to reach, so...


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#3 2013-01-19 11:37:19

CanadianGeorge
Scratcher
Registered: 2012-11-21
Posts: 100+

Re: When Does A Number Become "Infinity"

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  tongue ), enough to make that stuff happen, so I kind of don't know.


smile   neutral   sad   big_smile   yikes   wink   hmm   tongue   lol   mad   roll   cool
"You're weird" -My Sister

Offline

 

#4 2013-01-19 14:25:59

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: When Does A Number Become "Infinity"

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)


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#5 2013-01-19 14:47:51

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: When Does A Number Become "Infinity"

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

 

#6 2013-01-19 16:31:17

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: When Does A Number Become "Infinity"

JH1010 wrote:

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.

yikes


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

Board footer