Hey /g/, how do I display a float without ".0" at the end when its value is an integer? Is there a string formatting thing to do this?
Name:
op2007-02-28 8:57 ID:ZgcT/9vQ
>>3
Thanks, but I want it to display decimals if the number has any. I realize I could do something along the lines of `x = int(x) if int(x) == x else x`, but I was thinking there might be a better way?