Re: Convert float to string ...

2005-08-23 Thread Matt Hammond
> How can i convert a float value into a string value? Try: string_value1 = str(float_value) + ' abc' or: string_value1 = repr(float_value) + ' abc' Type in an interactive python session. help(str) or: help(repr) regards Matt -- | Matt Hammond | R&D Engineer, BBC Resear

Re: Convert float to string ...

2005-08-23 Thread Fredrik Lundh
Konrad Mühler wrote: > a simple question but i found no solution: > > How can i convert a float value into a string value? > > > string_value1 = string(float_value) + ' abc' str(float_value) + 'abc' repr(float_value) + "abc" '%fabc' % float_value '%gabc' % float_value (etc) the tutorial has

Re: Convert float to string ...

2005-08-23 Thread deelan
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://mail.python.org/mail

Re: Convert float to string ...

2005-08-23 Thread Grant Edwards
On 2005-08-23, Konrad Mühler <[EMAIL PROTECTED]> wrote: > Hi, > > a simple question but i found no solution: > > How can i convert a float value into a string value? > > > string_value1 = string(float_value) + ' abc' string_value1 = str(float_value) + ' abc' Or the more versatile: string_value

Re: Convert float to string ...

2005-08-23 Thread Simon Brunning
On 8/23/05, Konrad Mühler <[EMAIL PROTECTED]> wrote: > How can i convert a float value into a string value? > > string_value1 = string(float_value) + ' abc' string_value1 = str(float_value) + ' abc' -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail

Convert float to string ...

2005-08-23 Thread Konrad Mühler
Hi, a simple question but i found no solution: How can i convert a float value into a string value? string_value1 = string(float_value) + ' abc' doesn't work ... Thanks Konrad -- http://mail.python.org/mailman/listinfo/python-list