Get the latest tech news
Making a Bignum Library for Fun
How do computer handle really, really big numbers? Let's find out.
I had an initial theory of how bignums work: treat numbers as strings and manually perform arithmetic on the digits as you would on a piece of paper. First, we determine how many digits the result might be by taking the size of the bigger number and adding 1. It starts by determining the upper bound of how many digits the multiplication could produce and allocates them with zeroed values.
Or read this on Hacker News