8.2 Data Representation
How computers see the world
All data that we want a computer to process needs to be converted into this binary format.
What is binary?
The binary system is known as a ‘base 2’ system.
This is because:
there are only two digits to select from (1 and 0)
when using the binary system, data is converted using the power of two.
Converting from denary to binary
Converting from binary to denary
Try counting Binary using your fingers
Adding binary
Example
Overflow errors
Overflow errors
The effects of an overflow error can vary. It might make the program crash or it might just ignore the extra digit on the left and produce an unexpected result (in this case, 2 + 3 = 0!).