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