Converting to Base 10

Posted by incrediman on Stack Overflow See other posts from Stack Overflow or by incrediman
Published on 2010-03-07T23:22:28Z Indexed on 2010/03/07 23:26 UTC
Read the original article Hit count: 479

Filed under:
|
|
|

Hi,

Let's say I have a string or array which represents a number in base N, N>1, where N is a power of 2. Assume the number being represented is larger than the system can handle as an actual number (an int or a double etc).

How can I convert that to a decimal string?

I'm open to a solution for any base N which satisfies the above criteria (binary, hex, ...).

© Stack Overflow or respective owner

Related posts about binary

Related posts about hex