2009/11/23 stephen_b <redplusbluemakespur...@gmail.com>:
> I'd like to convert a list of floats to formatted strings. The
> following example raises a TypeError:
>
> y = 0.5
> x = '.1f' % y
> --
> http://mail.python.org/mailman/listinfo/python-list
Maybe
'%.1f' % y
?

hth
  vbr
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to