multiple precision integers-string to int conversion routines

A

adrin

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?
 
V

Victor Bazarov

adrin said:
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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,647
Latest member
NelleMacy9

Latest Threads

Top