A light switch is either on or off, and a computer stores every number with millions of tiny switches like it.
3 lessons, about 1 h 25 min3 simulations10 problems3 practice questionsPython in every lesson
A computer stores and processes every kind of data as binary, a number system with only the digits 0 and 1. You learn why, read the place values of binary, and convert between binary and denary in both directions, for numbers of up to 16 bits.
Hexadecimal is the base 16 number system. One hexadecimal digit stands for four bits, so long binary numbers become short and easy to read. You convert between hexadecimal, binary and denary, and learn where computer scientists use hexadecimal.
Computers add binary numbers in columns, just as you add denary. You add two 8-bit numbers and see when the answer is too big for the register. Then you shift bits to multiply and divide, and store negative numbers with two's complement.
Log in to join the discussion.
Loading…