Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Rules of assignment expression
Rules of assignment expression
Details are as follows.

When the shaping data is assigned to a real variable, the data is stored in the real variable in the form of floating-point numbers, but the size of the value remains unchanged. When assigning a real number to an integer variable, the fractional part will be discarded before assigning it to the integer variable.

When floating-point data is assigned to a double-precision variable, the numerical value remains unchanged, and the significant bit is extended to 16 (plus 0 after the decimal point). On the contrary, when assigning double-precision data to floating-point variables and integer data to integer variables, we should pay special attention to the differences in length and symbol types. It is precisely because of these differences that the values in variables will change after the assignment is completed. When the length of both sides of the assignment number is the same, whether it is signed or unsigned, it is directly assigned by bit, and its value remains unchanged.