 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
victor goban Guest
|
Posted: Tue Aug 31, 2004 1:09 am Post subject: How to expand my compiler's ULONG_MAX ? |
|
|
Sorry for beeing ignorant - I'm a beginner.
I use Microsoft Visual C++, version 6.0.
A variable of type 'long integer' can store values no more than 2.1 bln.
However, I'd like to work with a substantially higher numbers, say,
consisting of 30 - 40 digits (just trying to develope some primitive
approach to RSA-problem).
Please advise me if there any methods or programming tricks to resolve
the problem.
Thank you. Sincerely,
Victor Goban.
[email]vgoban (AT) verizon (DOT) net[/email]
August 18, 2004.
|
|
| Back to top |
|
 |
Ioannis Vranos Guest
|
Posted: Tue Aug 31, 2004 11:55 am Post subject: Re: How to expand my compiler's ULONG_MAX ? |
|
|
victor goban wrote:
| Quote: | Sorry for beeing ignorant - I'm a beginner.
I use Microsoft Visual C++, version 6.0.
A variable of type 'long integer' can store values no more than 2.1 bln.
However, I'd like to work with a substantially higher numbers, say,
consisting of 30 - 40 digits (just trying to develope some primitive
approach to RSA-problem).
Please advise me if there any methods or programming tricks to resolve
the problem.
Thank you. Sincerely,
|
You can write your own unsigned type. Or use some other library out
there. There are many free C++ arithmetic libraries.
Regards,
Ioannis Vranos
http://www23.brinkster.com/noicys
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|