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
精彩评论