Discuss Scratch

NxNmultiply
Scratcher
100+ posts

Can I make numbers over 1.79e308?

coder2045 wrote:

45afc4td wrote:

Arbitrary precision integer:
delete (all v) of [32-bit integer array v]
repeat (64)
add [4294967295] to [32-bit integer array v]

Technically 2^2048-1 is stored this way, but implementing multiplication and division, let alone sine, cosine, tangent, exponentation gets complicated. Not to mention displaying it as decimal.
That's just going to make a list like this:
But you can treat it as a base 4294967296 number internally
RobloxLover2015
Scratcher
19 posts

Can I make numbers over 1.79e308?

think [...]

A
BigNumberGuy111
Scratcher
5 posts

Can I make numbers over 1.79e308?

when green flag clicked
set [ mantissa] to [1]
set [ exponent] to [0]
forever
change [ mantissa] by (mantissa)
if <(mantissa) > [9.9999]> then
set [ mantissa] to ((mantissa) / (10))
change [ exponent] by (1)
end
end

Last edited by BigNumberGuy111 (April 28, 2020 02:09:28)

BigNumberGuy111
Scratcher
5 posts

Can I make numbers over 1.79e308?

the biggest number you can store in 1 list is technically
1.29414622183068709489883970936960372358335952467244194974383408547582297536833617871716490121702417144291519007457013264095819888942609835541216981547722792978471606987785171444346289665470903191796050796165245027560204087400256364844419854971630945492709536822979657376108116881592011154498263106266251909538263127119051008954456321272668911963069122692724938360450985776555932479235682002330097272056098462328969903022420597705458188183522514759286616861354619489157863445301278366321257132127407056070001720279480182556080680895277104135051367845854642311009225639524459624334804070208657911917279340377281788565174773687998168700500003600287647867740936423600477716027475701638422908428010009827839430113048937685188978540031779329028635746681316652807340970238414271856685739388538646245747950590476226742385080315182577056178154143388368837439196609956088923216210446681592432866265629628961983797… × 10^61650943
but it does require treating it as a base 2^1024-1 number

Last edited by BigNumberGuy111 (June 22, 2020 00:15:26)

BigNumberGuy111
Scratcher
5 posts

Can I make numbers over 1.79e308?

if you add a variable that tells you how many lists there are, you could technically store this
10^(10^316.0446552845662)
BigNumberGuy111
Scratcher
5 posts

Can I make numbers over 1.79e308?

if you add TWO variables…
10^(10^316.3456852802301)

Powered by DjangoBB