Ok thanks, have just checked it and it looks like it uses . (dot)
print locale.localeconv()['decimal_point']
> .
So hmm I don't know.
Type: Posts; User: innovated; Keyword(s):
Ok thanks, have just checked it and it looks like it uses . (dot)
print locale.localeconv()['decimal_point']
> .
So hmm I don't know.
Problem gets more and more strange:
tallat = 85.1212122
tallong = 12.1212122
print 'lat :%.7f'%tallat
print 'long:%.7f'%tallong
print "-------------------------"
Have also tried
tal = 'test2%.7f'%55.1212122
print 'test',tal
still
> 55..2121220
Hi again
This causes the exact same problem
tal = 55.1212122
print 'test%f'%tal
it prints
> 55..212122
Hi Gaba88
Have just edited the post with the code tag. So now it should be readable.
I really hope someone can help me, I am about to go crazy :)
Hi
I am pretty new to developing to S60 in Python, and I have a strange problem with positioning. For latitude I get 55..87698742437 (with two dots), I think is should have been 55.687698742437,...
Ok I do that, thanks for your replies though.
Hi Mike
Thank you for you quick reply.
I get 55..87698742437, with two dots, and as far as I can see the last dot should have been a 6 as in 55.687698742437. Because jeg looked at google maps...
Hi
I am pretty new to developing to S60 in Python, and I have a strange problem with positioning. For latitude I get 55..87698742437, I think is should have been 55.687698742437, longitude is ok....