Re: Count to 1000 in binary

Re: Count to 1000 in binary

Posted 06 December 2010 - 03:00 PM

1101

If it's 16 bits, you have 16 binary digits of precision, groups of 4 would be 16/4, so that's 4 groups of 4.

4*4=16

And no, the 0 padding is not necessary when writing a binary number. You may desire to depending the application of using binary numbers. But in the application of counting in a forum... where is the need? Maybe a preference of readability by some, but that's only preference, not need.

Keep in mind, binary is just another number system. Like hex, octal, decimal, quad, etc. The only time we pad any of these is because we desire to display them in their containers in that manner (a register, a text box, a grid, a scantron, etc).

In the case of say a memory register, yes you would write all the 0's because you're using some collection of bits to represent a number, and you must set ALL the bits to the proper representation. But that's a need of the hardware, not a need of binary numbers themselves.