OOPortal OOPortal


Data Types  «Prev  Next»
Lesson 3 Converting binary to Decimal
Objective Convert numbers between binary and decimal form.

Converting Binary to Decimal Digits

Converting a binary number to its decimal equivalent is fairly straightforward. Simply add the powers of 2 corresponding to the positions of the 1s in the binary number. For your reference, here are the first 8 powers of 2.
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1

Click through the following SlideShow to convert the binary number 10110001 to its decimal equivalent.

Converting From Binary to Decimal