开发者

Using numbers outside the range of unsigned long long?

开发者 https://www.devze.com 2023-03-08 21:33 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消