Title: Why Study Binary
1Why Study Binary
In a digital computer all information is
represented using the binary number
system. Simply because it is easy to build
electronic circuits which operate on the basis of
two states, either on or off.
2Number Systems (1)
For example the decimal number 711 is made up of
the following
3Number Systems (2)
Arithmetic
carry
4Number Systems (3)
Range
5What is Binary (1)?
- Currently we are used to a base 10 system called
denary - an alternative number system based on 2 is called
binary - Works in the same way as denary in that each
column from right to left indicates an increasing
power of 2
6What is Binary (2)?
- in denary (10) we have the digits 0 ? 9 available
- Similarly in binary (2) the digits 0 ? 1 are
available - a binary number would look like this
- 01101
7Binary Evaluation
8Binary Examples
9Converting to Binary
- Three main methods
- Keep dividing by two and the remainder forms the
number. - Keep subtracting decreasing powers of 2.
- Look and guess (subtraction).
10Successive Division
Convert 67 base 10 to base 2
11Subtraction
This gives 1000011
12Octal Notation
Binary is rather inconvenient to read and write
for humans. Octal base 8 only contains digits
0 7 3 binary digits 1 octal digit. Using
01011101 Now try 11111111
13Hexadecimal Notation (1)
An alternative to both binary and octal is
hexadecimal notation. Uses base 16
(hexadecimal) i.e. 0 .. 9, A. B, C, D, E and F 4
binary digits can be represented using 1 hex
digit. e.g. 01001001 11111111
14Hexadecimal Notation (2)
15Other Number Systems
Convert 67 base 10 to base 4