tags:

views:

59

answers:

2

I want Pi to like 100,000,000 decimals/digits...

And variables (well for me) say they have a limit of 67,000,000 bytes...

Is there any way around this?

can you save the first 10,000 characters/digits into one? can you save it into an array 10,000 in each?

Is there a way?

If so how? Thanks alot...

+3  A: 

If you're dealing with a buffer of that size, I'd save it to disk somewhere instead of keeping it in memory. Use fwrite and friends to save to a temporary file, and read it back when you're done.

zildjohn01
Ok i'll give it a try...
James Rattray
+1  A: 

For dealing with very large numbers of arbitrary sizes you should use the BCMath library. The only limit is the amount of memory available.

Rook