RE: Format a float and put in a list

2007-02-06 Thread David Sulkin
Sulkin Sent: Tuesday, February 06, 2007 6:53 AM To: python-list@python.org Subject: Format a float and put in a list 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

Format a float and put in a list

2007-02-06 Thread David Sulkin
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