please how do i store large numbers in c. the number has no be large like 121223824824623423476234762347623423476234234342342332762376 maybe up to 100 digits or more. after storing the number i need to carry out mathematical operations on that number which of course has been stored in a variable. mathematical operations like %(modular), and (pow), because as i understand, pow only operates with double while modular works with only integer variables
smicer 0
Newbie Poster
Recommended Answers
Jump to PostBig task.
Luckily, some people have already done some work.
http://www.swox.com/gmp/
If you want to implement on your own, then goodluck. I myself only implemented integers with trivial addition, subtraction and multiplication.
All 3 Replies
Asif_NSU 25
Posting Whiz
vegaseat 1,735
DaniWeb's Hypocrite Team Colleague
Lerner 582
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.