简体   繁体   English

vb.net中的精确数字

[英]Precise numbers in vb.net

I want to use numbers with a precision of hundreds of decimal places. 我想使用精度为数百位小数的数字。

I know of the BigInteger datatype for ints, but System.Numerics falls short beyond the decimal. 我知道BigInteger数据类型,但是System.Numerics不能超过小数。

How can I achieve anything beyond a simple Decimal / Double precision in vb.net? 在vb.net中,如何实现简单的Decimal / Double精度之外的任何功能?

Thanks for the help! 谢谢您的帮助!

The BigRational class didn't make the cut for the .NET 4.0 release. BigRational类并未在.NET 4.0版本中发挥作用。 You can download it here . 您可以在这里下载

I quickly googled this and it is apparent that .NET can't handle very large numbers natively. 我很快在Google上搜索了一下,很明显.NET本身无法处理非常大的数字。 But there are strategies to deal with numbers larger than those that can be stored in any of those types. 但是,有一些策略可以处理比任何类型都可以存储的数字大的数字。

This article looked particularly interesting: http://www.codeproject.com/KB/library/Big_Number.aspx and this wikipedia entry: http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic 这篇文章看起来特别有趣: http : //www.codeproject.com/KB/library/Big_Number.aspx和此Wikipedia条目: http : //en.wikipedia.org/wiki/Arbitrary-precision_arithmetic

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM