Single-precision floating-point type is the number of digits with decimal point, and the effective value is accurate to 7 digits: for example, 1.00000 1, 2.005438+0.
Double-precision floating-point type is more accurate with decimal places. Accurate to 16 digits: for example,1.00038+0.500000001
Assignment, all variables are assigned in the same way, only limited by the effective value.
Such as int int I =1.222; ; Then, C# will automatically default to int i =1; The following decimal points are not accepted;
Such as double I =1; Then, C # will automatically default to double I, which is essentially1.0;
Moreover, int I =' a This assignment is valid, and the system automatically calls ASC code by default;
If int I = "a The system will report an error;