 # Thread: Binary to decimal conversion algorithm in C++

### Rails

All modern railways use steel rails which are specifically rolled for the purpose from steel which has the required qualities of strength, fatigue endurance and wear and corrosion resistance. Read this topic
1. ## Binary to decimal conversion algorithm in C++

i need a binary to decimal conversion algorithm in c++ with complete analysis  Reply With Quote

2. ## binary to decimal conversion algorithm

i need complete analysis of binary to decimal conversion algorithn for c++ programing  Reply With Quote

3. ## How to convert Binary to Decimal

Steps:

• Get the last digit of the hex number, call this digit the currentDigit.
• Make a variable, let's call it power. Set the value to 0.
• Multiply the current digit with (2^power), store the result.
• Increment power by 1.
• Set the the currentDigit to the previous digit of the hex number.
• Repeat step 3 until all digits have been multiplied.
• Sum the result of step 3 to get the answer number.

Please find the complete PDF attached, along with various examples inside it...  Reply With Quote

4. i am very thankful to you for help.............  Reply With Quote

5. thanx buddy.........  Reply With Quote

algorithm, binary, conversion, decimal, engineering forum, faadooengineers 