Hi, is there a data type larger than unsigned long long int except double? I don't want double or float because I need to keep it as precise as possible. I also need it to be able to do modulus. How would I do this?
TheBeast32
54
Posting Whiz in Training
Recommended Answers
Jump to Posthttp://gmplib.org/
Or something like it.
Jump to PostHi, is there a data type larger than unsigned long long int except double? I don't want double or float because I need to keep it as precise as possible. I also need it to be able to do modulus. How would I do this?
GMP is uniquely great. Yet, …
Jump to Posttesuji how large you want your number to be???
However large it is it is always generated by computer try multiplying two largest numbers known to u and I think you will end up with getting a longer number!!!!!!
(you can use FFT algorithm to multiply extremely large numbers)
All 12 Replies
Salem
5,138
Posting Sage
tesuji
135
Master Poster
shankhs
0
Junior Poster in Training
TheBeast32
54
Posting Whiz in Training
jephthah
1,888
Posting Maven
tesuji
135
Master Poster
shankhs
0
Junior Poster in Training
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
tesuji
135
Master Poster
vijayan121
1,152
Posting Virtuoso
shankhs
0
Junior Poster in Training
TheBeast32
54
Posting Whiz in Training
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.