very large integer values 
Author Message
 very large integer values

 na> I've got a simple question for someone out there.. I am currently
 na> writing a simple program to recursively compute values for a Fibonacci
 na> series alrogithm (F(N)=F(N-1)+F(N-2)), a simple sum alrogithm
 na> (S=1+2+3...+N), and a Towers of Hanoi alrorithm.  The algorithms work
 na> great, but I am having difficulties finding these return values for
 na> very  large N.  unsigned long values work great up to a point, and it
 na> doesnt  seem to make much sense to store integers as floating point
 na> type (float  or double).  What data type should I be using for the
 na> return values? also, I am writing these programs for MS-DOS, is there
 na> some way  to check before hand if recursive F(N) will overflow the
 na> stack before  executing F(N)?   reply here or email, thx..
 You could compare any of the numbers to MAXINT or MAXLONG and take
 appropriate action if the number exceeds these values.

 Trevor D'Arcy-Evans

... Reality is only an approximation to theory.

Mon, 13 Oct 1997 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Largest Value of Integer

2. checking if textbox.text is integer value (or only allow integers in textbox)

3. read WMF-header and convert DWORD value to integer value

4. Initializing An Edit box that holds an Integer Value to Blank instead of any value

5. Initalizing An Edit Box that Holds An Integer Value to blank instead of a value

6. need help with a C program on largest integer

7. finding the smallest and largest of three integers

8. Multiplying Large Integers?

9. Addition of two large integer

10. crunching large integers

11. how to deal with large integers?

12. large integer


Powered by phpBB® Forum Software