How to expand my compiler's ULONG_MAX ?

Discussion in 'C++' started by victor goban, Aug 31, 2004.

  1. victor goban

    victor goban Guest

    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.



    August 18, 2004.
    victor goban, Aug 31, 2004
    #1
    1. Advertising

  2. victor goban wrote:
    > 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
    Ioannis Vranos, Aug 31, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yan
    Replies:
    0
    Views:
    1,130
  2. Jack Wright
    Replies:
    5
    Views:
    619
    Shiv Kumar
    Jan 19, 2004
  3. Ram
    Replies:
    0
    Views:
    2,827
  4. victor goban
    Replies:
    5
    Views:
    691
    rossum
    Aug 19, 2004
  5. ccwork

    ULONG_MAX

    ccwork, Apr 20, 2005, in forum: C Programming
    Replies:
    5
    Views:
    786
    Andrey Tarasevich
    Apr 21, 2005
Loading...

Share This Page