|
-
February 15th, 2007, 11:37 AM
#1
1024+ Digit Decimal/Double!
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?
-
February 15th, 2007, 11:49 AM
#2
Re: 1024+ Digit Decimal/Double!
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.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
February 15th, 2007, 11:53 AM
#3
Re: 1024+ Digit Decimal/Double!
What class(es) do you recommend?
-
February 15th, 2007, 11:54 AM
#4
Re: 1024+ Digit Decimal/Double!
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.
-
February 20th, 2007, 12:06 PM
#5
Re: 1024+ Digit Decimal/Double!
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.
-
February 20th, 2007, 12:16 PM
#6
Re: 1024+ Digit Decimal/Double!
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...
-
February 24th, 2007, 05:08 PM
#7
Re: 1024+ Digit Decimal/Double!
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?
-
February 24th, 2007, 05:23 PM
#8
Re: 1024+ Digit Decimal/Double!
an array that accepts bounds greater than Integer.MaxValue
OK, I understand long integer numbers (many digits), but mote than 4,294,967,296 digits????
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
February 26th, 2007, 12:38 PM
#9
Re: 1024+ Digit Decimal/Double!
Oops - I thought that integer.max_value = 10^16... (this was not because of VB6).
I'll post any questions later.
Thanks all.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|