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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -