It 18 Palm Job _java Foundation second day _ binary conversion principle and complement storage method

Source: Internet
Author: User

1. What is the representation of negative numbers and why is it so designed?

For:

Negative numbers are expressed in the complement form of the original code.

The positive and negative numbers add up to 0, overflow the highest bit, exactly equal to 0.


How is 2.-128 stored in memory? Extrapolation process

For:

-the result of the 1282 binary is 10000000 (according to the 8-bit calculation), as in the original code.


3. If the byte is represented as 11111111, what is its true data?

For:

11111111 of the original code is 0000 0001, so 11111111 of the real data is-1.


4. Do positive and negative numbers support the complement approach?

For:

All support


5. Is the positive number minus one negation?

For:

Is.


It 18 Palm Job _java Foundation second day _ binary conversion principle and complement storage method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.