Converting a floating point number to a string

Moshe Zadka moshez at math.huji.ac.il
Sun Feb 27 00:24:37 EST 2000


On Sat, 26 Feb 2000 kurtn at my-deja.com wrote:

> Hei
> As the subject says I would like to convert a
> floating point number to a string, in other words
> the opposite of 'atof'. I appreciate all the help
> I can get.

>>> a = 1.0
>>> str(a)
'1.0'


--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list