在C#中的任意precision小数? [英] Arbitrary precision decimals in C#?

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

问题描述

有没有arbitrary- precision的小数的类可用于C#?我见过一对夫妇的任意precision整数类的,但是这并不完全是一回事。

Is there an arbitrary-precision decimal class available for C#? I've seen a couple of arbitrary precision integer classes, but that's not quite the same thing.

推荐答案

您可以使用J#库的的java.math.BigDecimal 类,如果你已经安装了它。只需添加一个参考 vjslib

You can use J# library's java.math.BigDecimal class if you have it installed. Just add a reference to vjslib.

/me remembers one of the betas in which we had System.Numeric.BigDecimal, sigh

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

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