multiple precision integers-string to int conversion routines

Discussion in 'C++' started by adrin, Feb 1, 2005.

  1. adrin

    adrin Guest

    hello,
    how can i make a conversion from a string to a multiple precision integer
    stored in memory in a base 2^32?
    i guess conversion from integer to string would require dividing modulo 10,
    but how do the opposite conversion?
     
    adrin, Feb 1, 2005
    #1
    1. Advertising

  2. "adrin" <> wrote...
    > hello,
    > how can i make a conversion from a string to a multiple precision integer
    > stored in memory in a base 2^32?
    > i guess conversion from integer to string would require dividing modulo
    > 10,
    > but how do the opposite conversion?


    How about multiplying by 10 and adding?
     
    Victor Bazarov, Feb 1, 2005
    #2
    1. Advertising

  3. adrin

    adrin Guest

    "Victor Bazarov" <> wrote in
    news::

    > "adrin" <> wrote...
    >> hello,
    >> how can i make a conversion from a string to a multiple precision
    >> integer stored in memory in a base 2^32?
    >> i guess conversion from integer to string would require dividing
    >> modulo 10,
    >> but how do the opposite conversion?

    >
    > How about multiplying by 10 and adding?

    oh, hehe thanks
     
    adrin, Feb 1, 2005
    #3
    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. Andersen

    double precision vs. integers

    Andersen, Dec 18, 2005, in forum: Java
    Replies:
    11
    Views:
    989
    Andersen
    Dec 20, 2005
  2. Schnoffos
    Replies:
    2
    Views:
    1,220
    Martien Verbruggen
    Jun 27, 2003
  3. Hal Styli
    Replies:
    14
    Views:
    1,646
    Old Wolf
    Jan 20, 2004
  4. Xiaozhong
    Replies:
    4
    Views:
    421
    Matthias Buelow
    Jan 23, 2008
  5. wzab
    Replies:
    7
    Views:
    706
    Robert Kern
    May 9, 2009
Loading...

Share This Page