In most cases where precision is important, we work with numbers having decimal point rather than whole numbers. For example, computation of points in 3D space - Float will be more ideal for this. But later on, we need to convert back the float value to an integer when we want to know which coordinate on the screen it represents. This is just one scenario for the need of converting a Java float to int. There could be many more use cases. In case you also need it in your program, below are some examples on how to convert a float to int.