python list element from decimal into string -
i have 1 element in each list:
['39.95811864900048']
how can convert string. tried join:
"".join(item['longitude'])
it rounds off 2 decimals , returns
36.95
what need whole number string:
39.95811864900048
why not first element:
a = a[0]
example
>>> = ['39.95811864900048'] >>> = a[0] >>> '39.95811864900048' >>> item['longitude'][0] '39.95811864900048'
Comments
Post a Comment