需要任意精度的算术在C# [英] Need Arbitrary-Precision-Arithmetic in C#

查看:136
本文介绍了需要任意精度的算术在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的浮点计算为C#,能够正确地存储多达500也许位数/小数。是否有任何内置型对于这一点,我必须创建它自己,任何可用的库或什么是最好的方式去?

I'm in need of floating point calculations for C# that can correctly store up to maybe 500 digits/decimals. Is there any built-in-type for this, do I have to create it myself, any library available or what is the best way to go?

感谢

推荐答案

MPIR ,该项目GMP的一个分支,具有C#绑定。就个人而言,我发现他们更容易对付提高问题的时候,要我不再担心GMP(主要是因为它的倾向运行内存何时退出剧烈)点用。

MPIR, a fork of the GMP project, has C# bindings. Personally, I've found them easier to deal with when raising problems, to the point that I no longer worry about GMP (primarily due to its tendency to exit violently when running out of memory).

有上市这里别人,但我与他们没有直接经验因此不能对他们的用处发表评论。

There are others listed here but I have no direct experience with them so can't comment on their usefulness.

这篇关于需要任意精度的算术在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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