C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to expand my compiler's ULONG_MAX ?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
victor goban
Guest





PostPosted: Tue Aug 31, 2004 1:09 am    Post subject: How to expand my compiler's ULONG_MAX ? Reply with 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,

Victor Goban.

[email]vgoban (AT) verizon (DOT) net[/email]

August 18, 2004.



Back to top
Ioannis Vranos
Guest





PostPosted: Tue Aug 31, 2004 11:55 am    Post subject: Re: How to expand my compiler's ULONG_MAX ? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.