A computer stores everything in binary, as patterns of 0s and 1s. A denary number can be converted to binary, or to hexadecimal, which is a short way to write binary. Binary numbers can be added, shifted left or right, and written as negative numbers with two's complement. Text is stored with a character set such as ASCII or Unicode. A sound is sampled many times each second, and an image is stored as pixels, each with a colour code. File size depends on the resolution and the colour depth, and compression makes files smaller.
Lessons, worked problems and more questions on Data Representation →Log in to join the discussion.
Loading…