convert float to int android code example Example: android studio float to int int i = Math.round(f); // f a float