answersLogoWhite

0

No and Yes...

No because as such the two numbers are different and convention will define what the bit pattern should represent.

However, with 16 bits, the UNSIGNED bit pattern for 32768 is the same as the SIGNED pattern for -32768 BUT the two numbers are being represented in different ways (ie in different number systems).

If the binary representation is a SIGNED number then the top bit will be set if it is negative and with 16 bits the possible range of numbers is -32768 to +32767 and so it is IMPOSSIBLE to represent +32768.

With an UNSIGNED number of 16 bits the top bit has no such special meaning and the range possible is 0 to +65535, so it is IMPOSSIBLE to represent -32768.

ie it is IMPOSSIBLE with 16 bits to represent -32768 and +32768 in the same number system as they have the same bit pattern, BUT in different number systems the bit pattern can be used to represent the two numbers as the different number systems cannot represent BOTH -32678 and +32768.

User Avatar

Wiki User

7y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
More answers

No. The whole IDEA of such a code is that there is no ambiguity.

User Avatar

Wiki User

7y ago
User Avatar

No, it cannot.

User Avatar

Wiki User

7y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Can a positive number have the same binary code as a negative number?
Write your answer...
Submit
Still have questions?
magnify glass
imp