C# 中的任意精度小数 [英] Arbitrary-Precision Decimals in C#

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

问题描述

可能的重复:
C# 中的大整数
C# 无限制有效十进制数字(任意精度),无需 java

我在 C# 中的任意精度小数? 中阅读了问题,但我没有没有 J# 库.我需要一个带有 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#.

推荐答案

Big Decimal:

Big Decimal:

Big 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):

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

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