Is every binary number start with 0? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is every binary number start with 0?

Is it true that every binary number start with 1 ? if it is true then why 1 is starting of any binary number

2nd May 2018, 11:16 AM
chandrapal singh
chandrapal singh - avatar
1 Answer
+ 7
It depends on how you perceive the binary number. If it's 8-bit, then it will be left-padded with 0 until the number length is 8. For example, ✌ = 0000 0010. The same goes for 16-bit, 32-bit & etc. and that's how we interpret it. If you really want to ignore the leading 0, then you may assume the non-zero number comes along with the carry. 😉
2nd May 2018, 11:55 AM
Zephyr Koo
Zephyr Koo - avatar