Discuss Scratch

YoshiGirl153
Scratcher
500+ posts

What is the biggest number a regular variable can hold?

I don't know if this fits in Help With Scripts or here, but my question is related to making a points system for my game.

Edit: I didn't mean for this to get 100+ views and so many replies jeez ;-;

Last edited by YoshiGirl153 (July 3, 2022 17:43:35)

AwesomeSauce86
Scratcher
25 posts

What is the biggest number a regular variable can hold?

I don't know maybe
Infinity?
YoshiGirl153
Scratcher
500+ posts

What is the biggest number a regular variable can hold?

AwesomeSauce86 wrote:

I don't know maybe
Infinity?

Thanks

Last edited by YoshiGirl153 (July 3, 2022 01:44:59)

portalpower
Scratcher
1000+ posts

What is the biggest number a regular variable can hold?

I’m pretty sure it’s 10^103. That’s a 1 followed by 103 zeros. Anything higher will become infinity.
YoshiGirl153
Scratcher
500+ posts

What is the biggest number a regular variable can hold?

portalpower wrote:

I’m pretty sure it’s 10^103. That’s a 1 followed by 103 zeros. Anything higher will become infinity.

Thank you!
thugatwoary
Scratcher
100+ posts

What is the biggest number a regular variable can hold?

1.7976931348623157e+308 is the largest value Scratch can have
yes-i-am-lanky
Scratcher
100+ posts

What is the biggest number a regular variable can hold?

thugatwoary wrote:

1.7976931348623157e+308 is the largest value Scratch can have
it's 1e+103
yavuz61035
Scratcher
500+ posts

What is the biggest number a regular variable can hold?

the highest floating point number you can have in IEEE standards

or basically, (2^1024)-1

also, technically it is Infinity because in floating point Infinity is a number so big that it can't be represented as a floating point value

Last edited by yavuz61035 (July 3, 2022 14:35:06)

education888
Scratcher
56 posts

What is the biggest number a regular variable can hold?

1.79e+308 which is also infinity in JavaScript
thugatwoary
Scratcher
100+ posts

What is the biggest number a regular variable can hold?

yes-i-am-lanky wrote:

thugatwoary wrote:

1.7976931348623157e+308 is the largest value Scratch can have
it's 1e+103
This is false

Last edited by thugatwoary (July 3, 2022 15:24:13)

yes-i-am-lanky
Scratcher
100+ posts

What is the biggest number a regular variable can hold?

thugatwoary wrote:

yes-i-am-lanky wrote:

thugatwoary wrote:

1.7976931348623157e+308 is the largest value Scratch can have
it's 1e+103
This is false
anything higher becomes infinity
portalpower
Scratcher
1000+ posts

What is the biggest number a regular variable can hold?

yes-i-am-lanky wrote:

(#7)

thugatwoary wrote:

1.7976931348623157e+308 is the largest value Scratch can have
it's 1e+103
I just checked and it looks like they changed it. It used to be 103 digits but now it's 308.

Powered by DjangoBB