Open main menu

CDOT Wiki β

Changes

ULI101 Week 4

130 bytes removed, 16:06, 31 August 2017
Converting Binary to Octal
* Convert the binary number <code>111110000</code> to a hexadecimal number:
<pre class="example">= 0 0 0 1 1 1 1 1 0 0 0 0(8) (4) (2) (1) (8) (4) (2) (1) (8) (4) (2) (1)1 15 01 F 0
</pre>
Therefore, the binary number <code>111110000</code> represents <code>1F0</code> as a hexadecimal number.
<blockquote>1 hexadecimal digit is equal to 4 binary digits. Group binary digits into groups of 4 starting from the right. Add leading zeros if last group of digits is less than 4 digits. Convert each group of 4 digits to a hexadecimal digit.
</blockquote>
 
=== Converting Hex to Binary ===
<pre class="example"> 1 F 0
= 1 15 0= (8)(4)(2)(1) (8)(4)(2)(1) (8)(4)(2)(1)= 0 0 0 1 1 1 1 1 0 0 0 0
= 000111110000 = 111110000
</pre>
221
edits