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

#1 2012-06-07 00:29:43

legosarefun
Scratcher
Registered: 2011-03-28
Posts: 9

Maximum variable amount before infinity?

Does any body know what the biggest value you can have on a variable is that isn't infinity thanks.

Offline

 

#2 2012-06-07 00:33:55

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Maximum variable amount before infinity?

Well I know that it's equal to or greater than 1.30698922376190e+308 (checked a fibonacci sequence project and that was the last number before infinity).

Last edited by TorbyFork234 (2012-06-07 00:35:14)

Offline

 

#3 2012-06-07 00:34:58

legosarefun
Scratcher
Registered: 2011-03-28
Posts: 9

Re: Maximum variable amount before infinity?

Thanks!

Offline

 

#4 2012-06-07 00:35:38

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Maximum variable amount before infinity?

No problem! It's most likely not the exact number though.

Last edited by TorbyFork234 (2012-06-07 00:36:06)

Offline

 

#5 2012-06-07 00:37:10

legosarefun
Scratcher
Registered: 2011-03-28
Posts: 9

Re: Maximum variable amount before infinity?

I can do some trial and error from there to find the exact amount.

Offline

 

#6 2012-06-07 00:37:58

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Maximum variable amount before infinity?

Could that have been mine? Random question. And our binary calculator thing is broken, can you check out the thread? You seem to have a lot of advanced math knowledge (nice raycasters). That's why we asked this. Anyway, the thread is at this forum thread


........................................................................................................................................................................................................................................

Offline

 

#7 2012-06-07 00:39:40

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Maximum variable amount before infinity?

zubblewu wrote:

Could that have been mine? Random question. And our binary calculator thing is broken, can you check out the thread? You seem to have a lot of advanced math knowledge (nice raycasters). That's why we asked this. Anyway, the thread is at this forum thread

I looked at it and I have no idea how that project works (to get the image you want). Sorry.

Offline

 

#8 2012-06-07 00:40:49

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Maximum variable amount before infinity?

Okay. It's just starting to glitch at this pixel were at. The number may be too big for scratch to handle.


........................................................................................................................................................................................................................................

Offline

 

#9 2012-06-07 01:04:31

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Maximum variable amount before infinity?

How about you ask for this topic and the one you made in Bugs and Glitches to be closed as those two are basically the same as the one you made in the Help with Scripts forum. (for people who didn't see all 3 topics, zubblewu and legosarefun are doing something together so don't hate on me for posting this in a thread not made by zubblewu)

Offline

 

#10 2012-06-07 10:15:21

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Maximum variable amount before infinity?

So, with:

when gf clicked
repeat until <(item (last) of [out v]) = [Infinity]>
  add [((item (last) of [out v]) * 2)] to [out v]
end
I get...196600280608252263522870906249372667174897313179027903536714584679462909641225244410186392406873503839146604350432307440626442097005924887335315746252125826273421252503442603256077198363684396985034782923893470576602968266572910198514003529262116725083827571245782151542414477538713811987347163372463313674838217678774067660965751476817647007584938155912139874760633375375742901861646428618837472313964756992

Last edited by jvvg (2012-06-07 10:41:55)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#11 2012-06-07 10:18:54

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Maximum variable amount before infinity?

jvvg wrote:

So, with:

when gf clicked
repeat until <false>
  change [counter v] by (1)
end
Edit: Oops, hit submit too soon.  tongue
Results will come soon!

Isn't that just

when gf clicked
forever
change [counter v] by (1)
end


Posts: 20000 - Show all posts

Offline

 

#12 2012-06-07 14:29:48

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Maximum variable amount before infinity?

My guess is that it follows computer standards of 2³²

Otherwise, to find it:

set [count v] to (start number)
repeat until <(count) = [Infinity]>
change [count v] by (1)
end

Offline

 

#13 2012-06-07 14:32:59

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: Maximum variable amount before infinity?

LS97 wrote:

My guess is that it follows computer standards of 2³²

Otherwise, to find it:

set [count v] to (start number)
repeat until <(count) = [Infinity]>
change [count v] by (1)
end

depending on what player you use the counter may or may not say "infinity"

Offline

 

#14 2012-06-07 15:32:43

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Maximum variable amount before infinity?

777w wrote:

LS97 wrote:

My guess is that it follows computer standards of 2³²

Otherwise, to find it:

set [count v] to (start number)
repeat until <(count) = [Infinity]>
change [count v] by (1)
end

depending on what player you use the counter may or may not say "infinity"

Well, you can use the offline editor for that  wink

Offline

 

Board footer