Nearly Infinite Number System

After messing around a little bit with lists and number systems, I’ve created a set of blocks that allow you to do some basic operations, like addition, subtraction, and multiplication, with positive integers. However, these numbers, through being stored in a list, act as numbers in a far higher base system. As a result, you can do operations with numbers far, far above Snap’s normal integer limit. And when I say above, I mean on the theoretical limit of 10^1,000,000,000 and potentially higher.

Nearly Infinite Number System

It’s not perfect, as it’s a little unoptimized (I have no clue how you would improve it), and it doesn’t have division, and doesn’t work with negatives or decimals.

Oohh. Very interesting

for your duplicate @list :: lists reporter reporter, you can instead

Nearly Infinite Number System script pic

I didn’t realize that existed XD

i found a bug
Nearly Infinite Number System script pic

That’s because the list order is in reverse of what you would get with somehing like split () by [ v]

it’s supposed to be reversed.
if the fix block is incompatible with the reversed lists, that’s a bug.
also, either way, i don’t think there’s supposed to be a 10 in the list.

this is really cool!

i dont know if you know this but there is also a library that enables snap to handle large numbers.

This is intentional. Basically, the blocks use the list to functionally allow it to do operations in a number system with a higher base. So instead of each list item being base 10, they’re base 1,000,000.

I’m aware of it. The problem that I’ve found with it, though, is that past some value around 10^300, it just starts treating the numbers like infinity in some ways.

Nearly Infinite Number System script pic

ohhhh