Solved

# converting binary to decimal

Posted on 2003-11-28

Before you ask. This is school work, saying that I don't want the answer. I would however like some help in solving my problem. I know how to convert binary to decimal on paper. Meaning I can do this. EX: 11010 = 0 x 2^0 + 1 * 2^1 + 0 x 2^2 + 1 x 2^3 + 1 x 2^4 = 26. I can do that and understand it fine. here is what I am trying to figure out.

How to convert binary to decimal using integers. I have figured out how to convert them by using charactor arrays. I have also figured out how to convert from decimal to binary by using integers. I have just not figured out how to go from binary to decimal using integers rather the arrays.

Why do I want to do it that way you might ask? Well my professor said that the project would be easier that way. In fact it would be b/c of the way the rest of the project is set up. If I can figure out how to do it doing integers it would save me some time. Points will be given on how much help you give and how revelant the post(s) is/are. I will not accept anyone's post that post the answer.