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