开发者

Precise numbers in vb.net

I want to use numbers with a precision of hundreds of decimal places.

I know of the BigInteger data开发者_Python百科type for ints, but System.Numerics falls short beyond the decimal.

How can I achieve anything beyond a simple Decimal/Double precision in vb.net?

Thanks for the help!


The BigRational class didn't make the cut for the .NET 4.0 release. You can download it here.


I quickly googled this and it is apparent that .NET can't handle very large numbers natively. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜