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