ABSTRACT

At the end of this chapter, you should be able to:

• recognise a binary number • convert binary to decimal and vice-versa • add binary numbers • recognise an octal number • convert decimal to binary via octal and vice-versa • recognise a hexadecimal number • convert from hexadecimal to decimal and vice-versa • convert from binary to hexadecimal and vice-versa

All data inmodern computers is stored as series of bits, a bit being a binary digit, and can have one of two values, the numbers 0 and 1. The most basic form of representing computer data is to represent a piece of data as a string of ‘1’s and ‘0’s, one for each bit. This is called a binary or base-2 number.