Say I have three dollar totals that I would like to pass to a list. I'm wanting to keep them exactly as shown in the variables below. I tried using ('%.2f' % value) but that converted it to a string in the list. I know this has to be something simple so go easy on a newbie. I'm using python 2.6 right now. Thanks.
dollar_total_1 = 2305.05
dollar_total_2 = 150.00
dollar_total_3 = 734.50
list = [dollar_total_1, dollar_total_2, dollar_total_3]
[2305.0500000000002, 150.0, 734.5]
[2305.05, 150.00, 734.50]