Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make a huge number generator
- Jimmy541559
- Scratcher
10 posts
how to make a huge number generator
this works in the most unexpected way
set [number] to (join [1e+] [1000])
- ramenecho
- Scratcher
100+ posts
how to make a huge number generator
Well what’s your issue? From what i can tell that script is making the equivalent of 10 to the power of a thousand, which is nothing if you’ve ever seen a googolplex, but i see no issue? this works in the most unexpected wayset [number] to (join [1e+] [1000])
Last edited by ramenecho (March 26, 2024 16:48:20)
Hello there, this is a cool signature! You can even make your own wow! I really need somebody to check my game for bugs, MineQuest Idle its not the highest quality of games, but its an improvement from my previous ones
- Jimmy541559
- Scratcher
10 posts
how to make a huge number generator
but If you add one to that it turns into infinity so i need a way to make huge numbers…Well what’s your issue? From what i can tell that script is making the equivalent of 10 to the power of a thousand, which is nothing if you’ve ever seen a googolplex, but i see no issue? this works in the most unexpected wayset [number] to (join [1e+] [1000])
- deck26
- Scratcher
1000+ posts
how to make a huge number generator
Most (if not all) programming languages will have some sort of precision limits for large integers or will just not store values outside a certain range. I suspect there are few that have the precision you suggest where you could add 1 to a very large number and it be recognised as a different number.
If you want to work with very big numbers you really need to create your own arithmetical code and use text strings rather than numbers. Scratch will happily store 12345678901234567890 as a text string but as soon as you treat it as a number (eg adding 1) it will be convert to a number and the precision limit will kick in.
If you want to work with very big numbers you really need to create your own arithmetical code and use text strings rather than numbers. Scratch will happily store 12345678901234567890 as a text string but as soon as you treat it as a number (eg adding 1) it will be convert to a number and the precision limit will kick in.
- Discussion Forums
- » Help with Scripts
- » how to make a huge number generator