Converting a float to a formatted outside of print command

stephen_b redplusbluemakespurple at gmail.com
Mon Nov 23 16:27:45 EST 2009


On Nov 23, 3:17 pm, Dan Bishop <danb... at yahoo.com> wrote:
> You meant:
>
> x = '%.1f' % y

Thanks, I'm a dufus today.



More information about the Python-list mailing list