Convert small 64bit signed integer into a high and low byte ?


Author Message
DigitalDreams
Regular Member

Joined: 03/05/2025
Location: United Kingdom
Posts: 65
Posted: 05:56pm 02 May 2026      

Data read into an array (all signed as mentioned in first post). Pressure is virtually always positive so....
press=pdat(3)+pdat(4)*256+pdat(5)*65536

Temperature I've handled the same for now but will be testing for a 2's compliment negative bit and doing the necessary fiddle.
Edited 2026-05-03 03:57 by DigitalDreams