1. Use a strong rotation method
float a = 1.1L; //Define a float variable with the name a and the value is 1.1, and L means it is floating point typeint b = (int)a;//use(int)Cases to integerb
2. Method of adoption
float a = 1.1L; //Define a float variable with the name a and the value is 1.1, and L means it is floating point typeint b = (a);//useroundConvert the method to integer
The above example explanation of Android converting float to Int is all the content I share with you. I hope you can give you a reference and I hope you can support me more.