Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • $\begingroup$ Your question is not very clear about the actual range of numbers that should be stored. As it stands, the maximum number of bits to represent only $-32$ and $+32$ is a single bit. I guess this is not what you are asking for. If you want to store any number in that range (inclusively), you'd need 7 bits. (32 (negative values) + 1 (zero) + 32 (positive values)). For a 6-bit solution, you'd have to drop the $+32$. $\endgroup$ Commented Nov 24, 2019 at 10:09
  • $\begingroup$ sir 0 is a bit, 1 is also a bit. Minimum number of bits required to store +32(0100000) is 7 bits. Right most bit 0 to indicate sign bit. I am asking number of bits required to store -32 in signed two complement form, signed 1 complement form and signed magnitude form $\endgroup$ Commented Nov 24, 2019 at 11:59