Derek Basch wrote:
> How can I return:
> 
> ".666"
> 
> from float:
> 
> "0.666"
> 
> This is what I have so far:
> 
>>>> "%.6f" % x
> 
> Thanks Everyone,
> Derek Basch
> 

This works but I'm not entirely sure I know what you are
trying to accomplish.

("%.3f" % x)[1:]


-Larry Bates
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to