I think this question has more mathematical background than computional, then I'm gonna ask it here.
I was thinking about large numbers calculation. Let's say I have the number $16777735$ stored in memory like this:
$256^0$ $256^1$ $256^2$ $256^3$ $256^4$ $256^5$
--$7$----$2$------$0$----$1$-----$0$-----$0$--
How can I write this number to screen, let's say, in base $10$? Imagine that I CANNOT sum all the parts like $7 + 256\cdot2 + 256^3$, like I couldn't deal with a byte of this size. (I'm only interested in the algorithm, so imagine I have a really large number that can't fit in to a byte, this is just an example)
And also, how to calculate, like, lots of digits of $\pi$, with this same method? I need a way to do these calculations. I'm interested in learning, so I'm asking about the mathematical process of this.
Thank you :)
@udiboy: you mean base 10
– gammatester Jul 25 '13 at 08:11