If the type is long, it corresponds to its maximum possible setting. The simplest statement is how much is needed and how much is used. Theoretically, it can be used to kill pigs, but it will lead to memory waste, database redundancy and so on.
You can search for keywords on the internet to the maximum extent.
The value range of byte is-128-127;
From the perspective of computer composition principle, it can be explained that bytes account for 8 bytes in a computer, and bytes are symbolic shaping. When expressed in binary, the highest bit is the sign bit 0, which means positive number, and 1 means negative number.
Maximum value:12701111,that is, 2 minus 71;
Minimum value:-128 has been bothering me for a long time. You should know that positive numbers exist in the form of original codes and negative numbers exist in the form of complement in computers. How to calculate the complement of a negative number? That is, the original code of negative absolute value is converted into binary, and then inverted bit by bit, plus 1.
Take the following 10 and-10 as examples to introduce: 10 Original code: 0000 10/0 Its storage in the computer is 000010, so-/kloc-0. According to the above, the absolute value is 10. Convert to binary 0000 10 10 bitwise negation11101plus1:16544. This is the complement of-10. Ok,11110 in the computer stands for-10.
Let's take a look at the binary representation of-128 absolute value 128: 100000 bit negated 0111plus 65438. That is to say, the representation of-128 in the computer is 1000000. Let's look at the representation of-129 in the computer. The absolute value of 129 exceeds the number of bytes.