当你需要存储(非常)大数字时该怎么办? [英] What to do when you need to store a (very) large number?

查看:132
本文介绍了当你需要存储(非常)大数字时该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试 Project Euler 问题,但它涉及添加非常大数字的数字。 (100!)

I am trying to do a Project Euler problem but it involves adding the digits of a very large number. (100!)

使用Java int和long太小了。

Using Java int and long are too small.

感谢您的任何建议

推荐答案

Class BigInteger
看起来可能就是你的样子寻找。

Class BigInteger looks like it might be what you are looking for.

这篇关于当你需要存储(非常)大数字时该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆