需要大于64位表示形式的大数字 [英] Large Numbers Requiring More than 64 bit Representation
本文介绍了需要大于64位表示形式的大数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Java,并且必须处理大于long(64位)的数字.我应该使用什么? Java中BigInteger的大小是多少?
I am using java and have to deal with numbers larger than long (which is 64 bits). What should I use? What is the size of BigInteger in java?
推荐答案
As you mentioned in your question, you should use BigInteger.
它们可以随需要而变-直到内存用完为止.
They can be as large as you need - until you run out of memory.
这篇关于需要大于64位表示形式的大数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文