jl66

asked on

# how to convert a binary to a decimal?

Given one string consisting of numbers which actually corresponds to a real big binary number(>0), how to convert it to a decimal string in java. For example,

"10010001000111110110110100010100001001100100101001010001100000011101111110011101000101101111101001101101111100110001100011001001101001" in binary =

"12345678910111213141516171819202122232425" in decimal

"1001000100011111011011010

"1234567891011121314151617

ASKER CERTIFIED SOLUTION

membership

This solution is only available to members.

To access this solution, you must be a member of Experts Exchange.

ASKER

If we restrict the binary number to be <=2^128, is it a bit easy to resolve it?

SOLUTION

membership

This solution is only available to members.

To access this solution, you must be a member of Experts Exchange.

ASKER

Thanks a lot. Very helpful.

ASKER