On Nov 29, 8:35 am, "Gianmaria Iaculo - NVENTA" <[EMAIL PROTECTED]> wrote: > U are really nice guys... i'm really apreciating (sorry 4 my bad english) > > Chriss is right this are coordinates.... and i'm treating as strings > naturally > I dont really have floating points on my module.. it run a 1.5 python > version from Telit. > So i dont have zLib too... just have 1.5 Mb of Ram and 3Mb of Rom... not > realy confortable..isn't it? > > I'm tring some experiments on the command line... i've tried this: > > My longitude is 42.237897 > > so as a first step... i created a X and done this job as your examples: > > a = 4 > b = 2 > > x = (a<<4)|b > x is 66 > > so i can do: > > aDecoded = x >> 4 > > and i have the 4 again...( a value) but i've some problems while i decode > the b.... > > Where i go wrong?
>>> 66 & 0xf 2 >>> -- http://mail.python.org/mailman/listinfo/python-list