Using numbers outside the range of unsigned long long?
I've been trying to use numbers beyond the range of unsigned long long
. Can anyone help me regarding the use of numbers beyo开发者_JS百科nd the range of unsigned long long
?
You're going to need some kind of astronomical numerics library (also called arbitrary-precision arithmetic). GNU's MP Bignum library is nice, if you don't mind the LGPL: http://gmplib.org/
Boost has BigNum type implementations as well. That might work for you if you are already using Boost.
精彩评论