Changes

Jump to: navigation, search
Method 4: Hexadecimal to Binary / Binary to Hexadecimal
<table align="right"><tr><td>[[Image:bin-to-hex.png|thumb|right|275px|Performing a '''binary to hexadecimal''' conversion.]]</td><td>[[Image:hex-to-bin.png|thumb|right|350px|Performing a '''hexadecimal to binary''' conversion.]]</td></tr></table>
When converting '''decimal''' numbers to '''binary''' numbers, perform the following steps:<br><br># On the left side, write the '''decimal number''' to be converted.# Far to the right, write the '''number 1''' and while moving '''leftwards''', '''double the number''' until that number is NOT greater than the decimal number Binary to be converted (refer to the diagram).<br># If you are converting to 8-bit, 32-bit, etc., enter '''leading zeros''' if those doubled numbers are '''greater than''' the decimal number.<br># Moving in a '''rightwards''' direction, if the doubled number '''less''' than the decimal number, write a '''1''' and subtract the double number's value from the decimal number.<br># If the next doubled number is '''greater''' then the remainder, then write a '''zero'Hexadecimal''; otherwise, if the number is less than but not zero, repeat the above steps #4 and #5 until you have obtained your binary number.<br><br><br>
# One octal number represents 3 binary numbers, so starting from right-side, group binary digits into groups of 3 (add leading zeros if necessary).# Write (4)(2)(1) under <u>each</u> group of 3 binary numbers.# Multiply the placeholders (i.e. 0's and 1''NOTE:''' If you want s) by the corresponding (4)(2)(1) for each group to obtain the octal number (refer to perform diagram of '''Octal binary to Hexadecimaloctal''' or 'conversion).<br><br> ''Hexadecimal to OctalBinary''' numbering conversions # One octal number represents 3 binary numbers, you can convert so space-out the octal numbers to make space for a binary number.# Write (4)(2)(1) under <u>each</u> octal number.# Write 0's or 1's for each group of binary numbers to add up to the corresponding octal number (refer to diagram of ''octal to binary''' as a bridgeconversion). <br><br>
===File Permissions===
13,420
edits

Navigation menu