-
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".
Binary numbers are also based on position notation, and their bit weights are based on 2 powers. For example, a binary number whose weights are in the order of -2. For integers with n digits, binary numbers with m decimal places are expressed by a weighted coefficient formula, which can be written as:
n)2=an-1×2n-1+an-2×2n-2+……a1×21+a0×20+a-1×2-1+a-2×2-2+……In the a-m 2-m formula, aj denotes the coefficient of the j-th digit, which is a number between 0 and 1. Binary numbers can generally be written as: (an-1an-2....
-
The so-called binary system is an algorithm used in computer calculations. Binary is composed of only one and zero.
For example, you must have heard of "carry cylinders" & "pen cylinders" when you were in first grade. The decimal system is a bundle of ten small rods on the bit, put it into the ten-digit tube, and when the ten-digit tube is full of ten, it is tied into a big bundle, and put it into the hundred-digit cylinder ......The same is true for binary, where the full 2 of the single digit cylinder will advance one to the 10th digit, the full 2 of the 10th digit will advance to the 100th digit, and the 100th digit will be full of two ......
Binary is the algorithm used in the world's first computer, and the oldest computer has a light bulb, and when it is calculated, for example, to express "one", the first light bulb will light up. To express "two", then the first bulb goes out and the second bulb lights up.
With the development of science and technology, binary has been replaced by "octal" and "hexadecimal".
-
It's 2 into one! But now I don't have to fall behind.
-
Binary: A number system based on 2.
-
For example 101100101 divide by 111:
Binary division: 0 0 = 0, 0 1 = 0, 1 0 = 0 (meaningless), 1 1 = 1 ;
Rule: Binary arithmetic arithmetic operation binary addition: 0+0=0, 0+1=1 , 1+0=1, 1+1=10 (carry to the high position); i.e. 7 = 111
Binary subtraction: 0-0=0,0-1=1 (borrowing to the high position) 1-0=1,1-1=0 (modulo binary addition or XOR) ;
Multiplication of binary: 0 * 0 = 0 0 * 1 = 0,1 * 0 = 0,1 * 1 = 1 Binary division: 0 0 = 0,0 1 = 0,1 0 = 0 (meaningless), 1 1 = 1 ;
Logical operation binary or operation: meet 1 to get 1 binary and operation: meet 0 to get 0 binary non-operation: you take the negation.
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
Binary. In the 18th century, Leibniz, a German master of mathematical philosophy, read the composition structure of Bagua from the Latin translation of the Book of Changes sent to him by his missionary friend Bowitt, and was surprised to find that its basic prime number (0) (1), that is, the yin and yang lines of the Book of Changes, its carry system is binary, and he believes that this is the most advanced mathematical base system in the world. >>>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
What is the base system?
If it's not a decimal one: >>>More
Don't use cstring, the character length of cstring is unknown, so it is difficult to read and write. You can see what the value of sizeof(game) is. >>>More