(tkt = 1.0)
How can the following give the result "60"
while this one gives "60.0"?
Somehow the code which shouldn't be executed has an influence on the other part...
Doing the following which should do the same as the second one, it works as it should:
So printing 60 (and not 60.0) on the image for tkt=1.0, but for example 7.5 when tkt=8.0.
Is it a bug in java or am i missing something obvious here?
img.drawString(""+ (60/tkt>10 ? (int)(60/tkt) : 0), 0, 15);img.drawString(""+ (60/tkt>10 ? (int)(60/tkt) : 60/tkt), 0, 15);if (60/tkt>10) img.drawString(""+ (int)(60/tkt), 0, 15);
else img.drawString(""+ 60/tkt, 0, 15);


