You can try the old mantissa method. Basically, you can have a 64-bit integer to store the number, and then a 64-bit integer to store the exponent (which can be negative). You can create your own type of object and overload arithmetic operators, so it will be considered as one number. It will take some work, but I think it will be your best option.
source share