Binary and data representation - EdexcelRepresentation of data

All data in a computer is represented in binary, whether it is numbers, text, images or sound. The computer software processes the data according to its content.

Part ofComputer SciencePrinciples of computer science

Representation of data

In a computer, all is stored in form. A binary digit has two possible states - 1 and 0.

A binary digit is known as a . A bit is the smallest unit of data a computer can use.

Eight bits are known as a . A byte is significant in that a single character can be represented in binary in eight bits - one byte.

Binary values are used to represent many kinds of data, namely numbers, text, images or sound.

Units of data storage and file size calculation

To be able to reference large numbers of 0s and 1s, the binary unit system is used:

SizeUnit
8 bits 1 byte
1,024 bytes 1 kibibyte - KiB
1,024 kibibytes - 1,024 KiB1 mebibyte - MiB
1,024 mebibytes - 1,024 MiB1 gibibyte - GiB
1,024 gibibytes - 1,024 GiB1 tebibyte - TiB
1,024 tebibytes - 1,024 TiB1 pebibyte - PiB
Size8 bits
Unit1 byte
Size1,024 bytes
Unit1 kibibyte - KiB
Size1,024 kibibytes - 1,024 KiB
Unit1 mebibyte - MiB
Size1,024 mebibytes - 1,024 MiB
Unit1 gibibyte - GiB
Size1,024 gibibytes - 1,024 GiB
Unit1 tebibyte - TiB
Size1,024 tebibytes - 1,024 TiB
Unit1 pebibyte - PiB