b =(int)a; //This integer variable can only take the integer part of a. If you want to put the decimal of a floating-point variable,
Some parts are also omitted, such as a = 0.123; Think b= 123, that's it; b =(int)(a * 1000);
Then when calculating b, remember that b needs to be divided by 1000 to be the actual value.