I'm reading in positive numbers from a file, I need to do some processing but there's no telling how big these positive numbers will be. So far it looks like up to a max of 10 digits. I've tried declaring different variables to hold them (int, float, long, BigInteger, etc..) but I get a compile time error of "number too large" when I test an integer value of 10 digits on them. What can I use to hold huge numbers?
p.s. I was thinking of just storing them as a string, than processing the parts I need by breaking the string up (because the number represents an address which I need to break into bits). Does this sound like a better solution?
thanks, in C i always type casted it so i wouldn't have to remember. I completely forgot that I needed to do that. It wasn't making sense that I couldn't use a 10 digit number for a "long". [ October 24, 2008: Message edited by: Edmond Corrola ]