Solved

long integers in C

Posted on 2006-11-19
10
259 Views
Last Modified: 2010-04-16
I want somehow to implement in ANSI C an abstract data type for very long integers. A secure limit would be around 100!, which means even 64bit numbers can be insufficient.
If anybody has a link to a site with source code I'd be grateful.

Thanks in advance,
john
0
Comment
Question by:jonn_g
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 17976190
0
 
LVL 24

Expert Comment

by:fridom
ID: 17977371
lcc-win32 provides among others int128 and bignums.

Regards
Friedrich
0
 

Author Comment

by:jonn_g
ID: 17978661
I am developing this program in Fedora Core 5 linux system and I'd prefer if someone could provide a working source code just for the ADT BigNumber and not a whole C library.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 24

Expert Comment

by:fridom
ID: 17980113
Would you mind to explain me the difference?  What's different form working source code and a C library? In what way would you expect the sources? Object files?

Friedrich
0
 
LVL 84

Expert Comment

by:ozo
ID: 17981215
The GMP library does provide source code.
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 17998348
0
 

Author Comment

by:jonn_g
ID: 17998807
Well creating variables that are of long double type I managed to compute even 100! with a classic recursive factorial function. So to be honest, there is no problem anymore and I didn't use any of your answers...
0
 
LVL 84

Expert Comment

by:ozo
ID: 17999948
long double type won't be able to tell the difference between 100! and 100!+1, but if you don't require that, that's fine.
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18357070
PAQed with points refunded (175)

DarthMod
Community Support Moderator
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Progress

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question