answersLogoWhite

0

There are many different ways this can be done using binary form:

  • signed magnitude, one bit is the sign (i.e. 0=+, 1=-) and the other bits are the magnitude of the number (this is analogous to how we write negative integers on paper)
  • ones complement, invert every bit of the magnitude of a number to get its negative form
  • twos complement, invert every bit of the magnitude of a number then add one to get its negative form (most computers now use this form as the arithmetic circuits to do calculations in this form are simpler and thus less expensive than for the other two.

There are also corresponding ways this can be done using decimal forms (e.g. BCD, 2 of 5, excess-3)

  • signed magnitude, one bit or digit is the sign (i.e. 0=+, 9=-) and the other digits are the magnitude of the number (this is analogous to how we write negative integers on paper)
  • nines complement, subtract every digit of the magnitude of the number from 9 to get its negative form
  • tens complement, subtract every digit of the magnitude of the number from 9 then add one to get its negative form
User Avatar

Wiki User

8y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin

Add your answer:

Earn +20 pts
Q: How can you represent a negative integer in a computer system?
Write your answer...
Submit
Still have questions?
magnify glass
imp