a Googol is 10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
I want a datatype that can hold this number, and be able to perform mathematical operations on it. and possibly if it's not to hard, have decimal values as well that go 100 digits below 0
basically I want to make a datatype that has at least 512 bits(64 bytes), or larger if need be.
the only way i've thought of doing this is to make an array of char's and then calculate where in the array each number would go(the number 35 would be arry = 3 arry = 5). But i realize that would very bad on the cpu plus very complex.
I don't want any libraries that are out there, I'm looking for a way to do this myself.
Does anyone know of a way to do this?
Edited by Muzzy A, 09 June 2012 - 03:06 AM.