What is the difference between 100 and 0100 in binary?

I convert 4=100 in binary but converter converts 4=0100. In shifting, 4>>2=1. So, coverter is right, 4=0100. Because 100>>2=000 but 0100>>2=0001. Where am I doing wrong? Why 4 don't equal to 100?
100>>2=000

If you shift the bit pattern 100 two steps to the right you end up with 001.
Thanks a lot!
Just to be explicit, there is no difference between 100 and 0100 in binary.

Just like there's no difference between 100 and 0100 in decimal.
Topic archived. No new replies allowed.