-
Natural binary is binary representation of positive numbers.
Just like natural numbers are positive
In addition, the complement notation, etc., has nothing to do with natural binary.
There are 3 representations of binary: source notation, complement notation, and frameshift notation.
The source code is intuitive, but it is not suitable for computer hardware computing.
Complement code makes up for this shortcoming, easy to calculate, in general, the computer is stored with complement to represent data, addresses, etc.
The multiplication and division data is convenient to calculate with frameshift.
-
Binary: A number system based on 2.
-
Use the "divide by 2 remainder" method (i.e., a way to convert decimal to binary): divide the given natural number (decimal number) by 2 to get the quotient and remainder; Divide the quotient by 2 to get another quotient and remainder; Repeat until the quotient is 0Arrange the remainder of each step from back to front (the last remainder is placed in the first place, and so on, the first remainder is the last digit), that is, the binary number.
For example, the natural number 11, 11 divided by 2 = 5 ......Yu 1; 5 divided by 2 = 2 ......1;2 divided by 2==1......0 ;1 divided by 2 = 0......1.The binary number is 1011
-
are all in binary terms. The IP address has 32 bits. The subnet mask is also available in 32 bits. The subnet mask is defined as a full network bit of 1 for an IP address and 0 for the host bit
For example, I have an IP
Expressed as binary, that is.
ip 00001010 00000001 00000011 10000001
Mask 11111111 11111111 11111111 10000000
This mask is 25-bit. The CIDR block where the IP address is located is 00001010 00000001 00000011 10000000, which is 25
Conversely, I have an IP with a 25-bit mask so that counts.
ip 00001010 00000001 00000011 10000001
The mask is 25 consecutive 1s (25 bits for the network bit) followed by all zeros (host bits).
Mask 11111111 11111111 11111111 10000000
Convert to decimal that the mask is.
-
It is equivalent to 181 in decimal numbers
Conversion method: You can open the calculator that comes with Windows, and then use the calculator to convert, click on the decimal and binary.
-
The weights of binary numbers from right to left are 2 to the zero power, 2 to the 1st power, 2 to the second power... And so on, and then multiply by the corresponding values and add them, answer: 181
-
The 8421BCD code is a four-digit binary number that represents a decimal number.
Then, the 8421bcd code is only 0 9.
A four-digit natural binary number can have 0 f.
0 9, the form of both numbers is the same;
a f, which is only available to four-digit natural binary numbers.
-
Compared with natural binary code, folded binary code has the following advantages:
1).The coding process can be simplified;
2).For small signals, it is beneficial to reduce the average quantization noise.
-
An overflow is when there is not enough place in the memory and the bits need to be discarded. If the high bit is discarded, it is an overflow, and the overflow flag of the flag register is set to 1In your example, the number in front is smaller than in the back, and it will overflow.
Binary is a system of numbers that is widely used in computing technology. Binary numbers are numbers represented by two numbers, 0 and 1. Its base is 2, the carry rule is "every two into one", and the borrowing rule is "borrow one as two". >>>More
Generally speaking, the bit power of the binary system is the number of bits, and the binary bit power is 2. >>>More
1.Binary 1000 is replaced by 16.
With the 8421 conversion method, that is, from left to right, 8*1+4*0+2*0+1*0=0x8, this is the universal conversion method for all hexadecimal to binary, bit-to-bit alignment conversion, multiply by 8421 respectively, and then add up. If the binary number. >>>More
If it's a method, I can give you a natural language description of how the decimal integer part n can be converted to binary as follows: >>>More
Do you know how to do the math?If I don't understand, I can't help it.