Convert float to string ...

deelan ggg at zzz.it
Tue Aug 23 10:57:21 EDT 2005


Konrad Mühler wrote:
> Hi,
> 
> a simple question but i found no solution:
> 
> How can i convert a float value into a string value?
> 

just use the "str" built-in type:

 >>> f = 9.99
 >>> str(f)
'9.99'


-- 
deelan, #1 fan of adriana lima!
<http://www.deelan.com/>



More information about the Python-list mailing list