Suppose a 4-bit binary number (0000 ~11,unsigned) can store 16 numbers from 0~ 15. If a 20:
The binary of 20 is 10 100 (note that it is a 5-bit binary). If you put four digits, the leftmost 1 will be thrown away because it can't fit. So what is actually stored is 0 100, which is decimal 4.