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


Author Message
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4332
Posted: 02:30pm 01 May 2026      

  DigitalDreams said  
  matherp said  bin2str$ was designed for specifically this


Hi Peter

Worked well in that case yet I face a new challenge. Reading temperature and pressure data in 24-bit signed format. Three consecutive bytes (or 6 consevutive bytes for both). Bin2str$ and it's counterpart have no 24-bit options. It seems I have to do this conversion manually....

You can use 32-bit with some hassle.

Are they signed or unsigned 24-bit?

John