posted 23 years ago
Kamal,
Have a look at the odometer in your car. (It is the counter within the speedometer that tells you how far you have travelled). It is a decimal counter ie. has digits from 0 to 9. Before you start you set it to 0. If you travel 4 km, it shows
0004
After 9 km it shows
0009
After 10 km it shows
0010
and so on.
Now imagine a car whose odometer is binary ie. has only two digits 0 and 1.
The odometer readings will now be
0000 at start
0001 after 1 km
0010 after 2 km
0011 after 3 km
0100 after 4 km
.
.
1000 after 8 km
1001 after 9 km
1010 after 10 km
and so on.
This is how you count in the binary number system.
If you were counting using the octal system, your odometer would have numbers from 0 to 7 only. Hexadecimal systems would have 16 digits 0 to 9, then a to f.
Hope this makes things a bit clearer.
Regards,
Dilip
[This message has been edited by Dilip Varma (edited February 24, 2001).]