Re: bytes_to_int
- Posted by Jason Gade <jaygade at yahoo.com> Feb 12, 2006
- 475 views
your average Joe wrote: > > Aha, thx for all the replies, lots of ideas and food for thought there, > exactly > what i needed :) > > I just noticed exactly where i am having the problem by slowing my > converter and printing each one in all its forms so i can see what's > happening. > > It is apparent to me now that the sequence {6,0} is suppose to return a value > higher than 65535, that's exactly where i am getting the clipping problem on > all elevations once > that exceed that number which to my undestanding is the max i can output using > the 2byte padding technique. > > Ill try the methods listed and let you know if i can get it working > > Thanks > Joe Glad to help. What exact range and byte-order are you looking for? In an earlier post, you said you needed to convert them to 16-bit signed integers. What is the actual min and max output that you need? Do the 16-bit numbers need to be scaled to 32-bits? -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel j.