>
> If I do the next :
>
> t1 = [(round(float(x),1), round(float(y),2)) for x, y in t]
>
> I get the long float as :
>
> [(35.797, -0.23999), (33.297,
> -2.71), (33.601,-2.4199)]
>
> But I would have a float with 2 decimal numbers.
On Jun 10, 4:30 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Nader wrote:
> > Hello,
>
> > I have a list of tuple with strin elements. These elements are number,
> > but they are save as string. Now I will change the string to number
> > which will be rounded. An example will make it more cl
Nader wrote:
> Hello,
>
> I have a list of tuple with strin elements. These elements are number,
> but they are save as string. Now I will change the string to number
> which will be rounded. An example will make it more clear.
>
> t = [('35.757', '-0.239'), ('33.332', '-2.707'), ('33.640', '-2.