Floating numbers and str

Grant Edwards grante at visi.com
Wed Nov 9 19:30:49 EST 2005


On 2005-11-10, Dan Bishop <danb_83 at yahoo.com> wrote:
> Grant Edwards wrote:
>> On 2005-11-09, Tuvas <tuvas21 at gmail.com> wrote:
>>
>> > I would like to limit a floating variable to 4 signifigant digits, when
>> > running thorugh a str command.
>>
>> Sorry, that's not possible.
>
> Technically, it is.

Ah well, I assumed that by "floating variable" he meant the
built-in "float" type.

-- 
Grant Edwards                   grante             Yow!  I always wanted a
                                  at               NOSE JOB!!
                               visi.com            



More information about the Python-list mailing list