Android Studio Float to int

int i = Math.round(f); // f a float
Im_Arxus