public class Main { public static void main(String[] args) { float x = 234; float y = 45; System.out.println(String.format(Locale.US, "%d,%d", (int) x, (int) y)); } }