1st April 2011, 01:32 PM
Binary to decimal conversion algorithm in C++
i need a binary to decimal conversion algorithm in c++ with complete analysis
1st April 2011, 01:42 PM
binary to decimal conversion algorithm
i need complete analysis of binary to decimal conversion algorithn for c++ programing
1st April 2011, 08:32 PM
How to convert Binary to Decimal
- 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...
1st April 2011, 09:47 PM
i am very thankful to you for help.............
2nd April 2011, 04:42 AM
Passionate FaaDoO Engineer
Tags for this Thread