How do you perform an operation on a very long Decimal (or Double), if you need more digits than Decimal can handle and you do not want it in exponential notation... for example, computing pi or e or phi?
Printable View
How do you perform an operation on a very long Decimal (or Double), if you need more digits than Decimal can handle and you do not want it in exponential notation... for example, computing pi or e or phi?
There are infinite precision classes available, but most of them are for C++.
The basic idea is you use a dynamic array of digits, and write all of the math operations.
What class(es) do you recommend?
Like I can write math operations!
Two things:
1. Wouldn't math operations in VB.NET be very inefficient? (For instance, in a graphing software)
2. Could someone help me define exponentiation/logarithms with the array?
Thanks.
I started to create my own class, using a Byte array.
Can someone tell me how to define powers and other things?
I know how to define sin, cos, etc., because of the series, but what about powers and division? Can someone help? Thanks.
I remember seeing a post a while back on the MSDN forums over dealing with long numbers, and was able to find it here, if it helps at all...
Thanks a lot, I'll look at it.
After taking a quick glance, though, I don't get how to make an array that accepts bounds greater than Integer.MaxValue... any idea?
FYI: I'm creating a class named UnlimitedDecimal which uses BitConverter... should I make it a structure instead?
OK, I understand long integer numbers (many digits), but mote than 4,294,967,296 digits???? :eek: :eek: :confused:Quote:
an array that accepts bounds greater than Integer.MaxValue
Oops - I thought that integer.max_value = 10^16... (this was not because of VB6).
I'll post any questions later.
Thanks all.