Changes

Jump to: navigation, search
Method 2: Decimal to Binary
# Write down the '''decimal number''' to be converted.
# On the ''right-side'', write the number '''1''' and moving '''leftwards''', keep <u>doubling</u> the numbers until that number is '''greater than''' the decimal number to be converted (refer to the diagram on the right).<br>
# Moving in a '''rightwards''' directionOn the rightmost series of doubled numbers, if compare that number with the decimal number. If that number is '''if less''' than or equal to the decimal number, then write a '''1''' below and subtract the double that number's value from the decimal number; otherwise, if to get a remainder. If the number if is greaterthan decimal number, then right write a '''0''' below.<br><br># If the next doubled number is Repeat '''greaterstep #3''' then the remainder, then write a '''zero'''; otherwise, if (moving leftwards and comparing the number is less than but not zero, repeat with the above steps #4 and #5 until you have obtained your binary number.decimal's remainder)<br><br>'''NOTE:''' If you are converting to '''8-bit''', '''32-bit''', etc., add '''leading zeros''' if necessary.<br><br>
==== Method 3: Octal to Binary / Binary to Octal ====
13,420
edits

Navigation menu