Binary encoding

Ewan Richardson ewan at supremis.co.uk
Mon Jul 19 23:00:26 EDT 2010


I have another question. i need to encode a lat/long pair
using......................

bits-32/1 (Longitude) In WGS.84 in two’s complement.
Range -180 £ longitude < 180 deg.

(LSB) = 180/2 to the power 25 degrees

for example - i have the values 51.770302, -4.061172

am i right in thinking that revolution uses twos complement internally?, and
i would be safe enough using--

put binaryEncode ("f*",(tdata[1]*128)) into theLatLong
put binaryEncode ("f*",(tdata[2]*128)) after the last item of theLatLong




More information about the use-livecode mailing list