Use the complement 1000 0000 as the storage form of decimal number -32768 in memory. 1000 0000 is a complement form, and the process of calculating its true value is to add 1, that is,11111.
Extended data:
If you specify a number that is out of the integer range, it will be interpreted as floating point. Similarly, if the result of the operation is out of the range of integers, it will also return a floating-point type.
To explicitly convert a value to an integer variable, you can use (int) or (integer)? Forced conversion. However, in most cases, there is no need to cast, because when an operator, function or process control requires an integer parameter, the value is automatically converted. When converting from floating-point type to integer type, numbers will be rounded (decimal places will be discarded).