how to make a huge number generator
id: 750362
category: Help with Scripts
posts: 4
Jimmy541559
loading
this works in the most unexpected way
set [number] to (join [1e+] [1000])
ramenecho
loading
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])
Jimmy541559
loading
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
loading
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.