简体   繁体   English

使用 unsigned long long 范围之外的数字?

[英]Using numbers outside the range of unsigned long long?

I've been trying to use numbers beyond the range of unsigned long long .我一直在尝试使用超出unsigned long long范围的数字。 Can anyone help me regarding the use of numbers beyond the range of unsigned long long ?任何人都可以帮助我使用超出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/ GNU 的 MP Bignum 库很好,如果您不介意 LGPL: http://gmplib.org/

Boost has BigNum type implementations as well. Boost 也有 BigNum 类型的实现。 That might work for you if you are already using Boost.如果您已经在使用 Boost,这可能对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM