<p>First one’s correct, I’m assuming the leading 0 is the sign bit for twos complement.</p>
<p>Second one has the right bits, but a) you forgot the binary point, and b) I don’t know why you need more than 1 leading zero, assuming you’re doing two’s complement. </p>
<p>I would have said 010111.001</p>
<p>Of course you may be learning something another way that I’m not familiar with.</p>
<p>sang54 - you are correct if you’re working with unsigned, otherwise if you’re working in twos complement, your numbers are negative.</p>
<p>sdmatt, can you explain how are you being taught?</p>
<p>As far as whether it’s appropriate, it’s not like sdmatt didn’t do the work or didn’t understand, he just had a few basic questions about binary points and leading zeros and is using a really simple problem to ask the questions. It’s like 3rd grade stuff if you are raised speaking decimal instead of binary.</p>
<p>Why do you start with 2^9 instead of 2^8? If it were unsigned, would you write 0345 in decimal? What you have isn’t wrong, I’m just trying to understand your reasoning about where you start.</p>
<p>They may be necessary depending on whether your representation is unsigned, in which case you’re fine, or is twos complement in which case you need a leading zero to indicate that it’s positive. </p>
<p>In twos complement, what you wrote 10111.001 would be -01000.111 = 8.875,
so if you’re working with twos complement (most common), you need one leading zero.</p>