question about string formatting

Kelie kf9150 at gmail.com
Wed Apr 9 13:04:12 EDT 2008


Hello,

Is there something in Python built-in function or library that will convert
a number 1205466.654 to $1,205,466.65? To add the "$" sign and set the
decimal place is not a problem, but I don't know how to add the thousands
delimiter.

Thanks,

-- 
Kelie
UliPad <http://code.google.com/p/ulipad/> is my Python editor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080409/9322a686/attachment.html>


More information about the Python-list mailing list