Hello,
I have a float that I am trying to format to 2 decimal places, put the formatted float in a list and then output this to a file. My problem is, once I format my float, my float has quotations around the float due to my formatting. I am doing the following: ( "%.2f" % float( list[x] ) ) Is there a way I can format the float so when I see it in the file it looks like [19.45, 20.52, 16.56] instead of ['19.45', '20.52', '16.56']? Thanks in advance.
-- http://mail.python.org/mailman/listinfo/python-list