You might try this:
img.drawString(60/tkt<10 ? ""+(60.0/tkt) : ""+(60/tkt));
Nope, that doesn't work. But I am okay with having the if-else and the extra line. It's not a big deal after all, I was just wondering why that happens.img.drawString(60/tkt<10 ? ""+(60.0/tkt) : ""+(60/tkt), 0, 15);
img.drawString(60/tkt<10 ? ""+(60.0/tkt) : ""+(int)(60/tkt), 0, 15);
img.drawString(60/tkt<10 ? "" + 60/tkt : "" + (int)(60/tkt), 0, 15);