I was wondering if there might not be a class that would allow as much accuracy as there is memory. With overloaded operators in order to do arithmetic on it as if it was a
There are plenty libraries for that, like GMP (it provides also a C++ interface) or cbignum.
You'll probably find as many libraries of this kind as you wish.