The title says it all: is there a way to store a really huge number using scientific notation?
Something like BigInteger i = 1.9891*10^30
?
For the record, I'm trying to store the mass of the Sun. In fact, in the end, I would like to be able to store the masses of several stars and planets, not to mention their radiuses, surface areas, volumes, etc. And I figure that storing the full values would use way to much memory.
Or do I need to craft my own class to handle scientific calculations and store such values?
EDIT
What I mean is, if I store the number 1.9891e30, how much disk space will be used? As much as if I stored 1989100000000000000000000000000, or less?