When a long integer is converted to a single-precision floating-point type, the precision will be lost.
When a long integer is converted to a double-precision floating-point type, there is no loss of precision.
According to different programming languages, whether it is necessary to cast is different.
Forced type conversion, when the types of operands are different and do not belong to the basic data type, it is often necessary to convert the operands to the required type. This process is called cast. There are two forms of modeling: explicit modeling and implicit modeling.
In the assignment operation, when the data types of the quantities on both sides of the assignment number are different, the type of the quantity on the right side of the assignment number will be converted into the type of the quantity on the left. If the data type length of the right quantity is longer than that of the left quantity, some data will be lost, the accuracy will be reduced, and the lost part will be discarded directly.
Reference:/link? URL = ejg 9 qxhsey 4 pu 5 ozyntcdi 0 qmuvvjhdzlkx 27 im 5j _ S6AMYp-gywz 7 qqbr 8 slgdyrjj 3 zy 19n 3 jithfcwtauq