大量类的最有效实现 [英] Most efficient implementation of a large number class

查看:73
本文介绍了大量类的最有效实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当对整数数据类型(例如double或int64)不足的超大数进行计算时,可能需要一个单独的类来处理如此大的数.

When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed.

有人愿意提供一种关于如何最好地做到这一点的有效算法吗?

Does anyone care to offer an efficient algorithm on how best to do this?

推荐答案

在C#4.0中,使用

In C# 4.0 use the BigInteger type

这篇关于大量类的最有效实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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