The story of 0

Source: Internet
Author: User

1, 0 of the role

(1), placeholder

In the case of a decimal number of 2503, 0 of it means "no" for 10 bits. Although said "no", but this 0 can not be omitted. Because if you omit 0 and write 253, it becomes a different number.

In the bitwise counting method, the digit has the very important significance. Even if the 10-digit number is "not", you cannot write the number. This is the turn to 0 appearances, that is, 0 of the role is to occupy a position. In other words, 0 occupies a position to ensure that digits above it do not cause dislocation.

(2), unified standards, simplified rules

Also take 2503 as an example, it is represented by a bitwise count method: 2 x 10^3 + 5 x 10^2 + 0 x 10^1 + 3 x 10^0. 3 x 10^0 0 plays a role in standardization, and if it does not, it has to deal specifically with the number "3".

By stating "No", the rules can be simplified. This concept is also very useful in programming.

2, why the negative power of the natural number is the fraction? Negative number multiplied by negative result is positive

Observations: 2^5 = 32, 2^4 = 16, 2^3 = 8, 2^2 = 4, 2^1 = 2. It can be concluded that for 2^n, the value of n per reduction of 1 becomes the original 2 1. Well, we can speculate that 2^0 = 2^1/2 = 1,2^-1 = 2^0/2=1/2 ...

In the same way, observe: -2x5 = -10,-2x4 = -8,-2x3 = -6,-2x2=-4,-2x1 = -2,-2x0 = 0. It can be concluded that for -2XN, N will increase by 2 for each reduction of 1 value. Well, we can speculate that -2x-1 = -2x0+2 = 2,-2x-2 = -2x-1 + 2 = 4 ...

The story of 0

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.