在C#中Arbitrary- precision小数 [英] Arbitrary-Precision Decimals in C#

查看:242
本文介绍了在C#中Arbitrary- precision小数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能显示的文件:结果
  大整数C#结果
  <一href=\"http://stackoverflow.com/questions/4160988/c-unlimited-significant-decimal-digits-arbitrary-$p$pcision-without-java\">C#无限显著十进制数字(任意precision)没有Java

我阅读任意precision小数问题?,但我没有J#库。我需要任意precision小数库用C#。

I read the question at Arbitrary precision decimals in C#? but I don't have the J# library. I need a library for arbitrary precision decimals with C#.

推荐答案

大十进制:


  • 安装J#运行库(免费):<一href=\"http://www.microsoft.com/downloads/en/details.aspx?familyid=f72c74b3-ed0e-4af8-ae63-2f0e42501be1&displaylang=en\" rel=\"nofollow\">http://www.microsoft.com/downloads/en/details.aspx?familyid=f72c74b3-ed0e-4af8-ae63-2f0e42501be1&displaylang=en

大INT(如果你喜欢J.D.的解决方案,还是要拿出一个有理数/分型类,我莫名其妙地错过了你要找的小数,而不是整数。)

Big Int (If you like J.D.'s solution, or want to come up with a rational number/fraction type class. That, and I somehow missed that you were looking for decimals, not ints):

  • Get C# 4.0: Big integers in C#
  • Get the IntX class: http://intx.codeplex.com/

这篇关于在C#中Arbitrary- precision小数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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