How is - 128 represented in 1-byte binary? Can it be expressed in original code? Or must we use complement?

Reported answer
How is - 128 represented in 1-byte binary? Can it be expressed in original code? Or must we use complement?
Ask online customer service
Scan the code to ask online customer service
  • Number of answers

    three

  • Number of browses

    6,078

3 answers Default sorting
  • Default sorting
  • Sort by time

Adopted
The original code cannot express
cancel comment
Positive zero: 00000000
Negative zero: 10000000
These two numbers are both 0, but their source codes have different representations.
But their complement is the same, they are both 00000000
The highest bit of binary 10000000 is 1, so it represents a negative number. How much is negative? We invert all eight digits to get 01111111, and then add 1 to get 10000000 The number is regarded as an unsigned number, with the value of 128, so 10000000 in the computer represents - 128
cancel comment
Since the first significant digit of binary is always 1, you can omit the first significant bit and use only 12 bits
1|0110|0110 1100 1010
cancel comment
ZOL Q&A > mobile phone > Other classifications > How is - 128 represented in 1-byte binary? Can it be expressed in original code? Or must we use complement?

Related products

  •  Track 128

    Track 128

    Reference price: ¥ 768 Score: 4.0

    Hot ranking list: not listed

  • Jingdong Search

Top mobile phone rankings

See more rankings>

report

Thank you for contributing to the harmony of the community. Please select the type of report

Reported successfully

It will be handled after verification
Thank you for your contribution to community harmony

Scan the code to participate in the trial of new products at 0 yuan
You can get the sheets and grand gifts on the top floor

 Scan and pay attention to us
Tips

Are you sure you want to cancel this registration and exit this activity?