954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

big integers

hello everyone.. please help me with my program. Please help me solve a program that could accept more than 10 digits.

Thanks

cuddlerbes
Newbie Poster
2 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

I don't see a program, therefore there's nothing to help with.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

When I was in high school I vaguely remember doing some type of Big Integer case study for the AP Computer Science exam. The case study was universal for the test given that year, so if you Google it, you should be able to find something about it.

cscgal
The Queen of DaniWeb
Administrator
19,423 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

Take number as string. Also long int, long long etc etc may take number till 10 digits.

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

No use link list to represent as big numbers as you want.

ithelp
Nearly a Posting Maven
Banned
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128
 
Take number as string. Also long int, long long etc etc may take number till 10 digits.

long int (on most 32 bit systems, anyway) will not take full range of 10 digit numbers, as it's allocated just 4 bytes.

long long int will be sufficient, handling full range of 19 digits, plus some of the 20th.

Val

vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You