I recently wrote that App Inventor represents its numbers in floating-point. I’ve since discovered something curious about integers. When typed into math blocks, they are represented in floating-point; but when generated through calculations, they are represented as arbitrary-precision integers — big integers.
These blocks compute 2234112:
They give this 376-digit answer:
The answer is correct, as verified by PARI/GP:
The only way App Inventor could have done this correctly is by using big integers.
On the other hand, when I paste that number into a number block, App Inventor sets it to infinity:
It’s too big for double-precision floating-point.