B4J Question Convert signed byte to int

Philip Prins

Active Member
Licensed User
Longtime User
Hello ,

I get a HEX value that is a temperature reading 16 Hex is 22 degrees.
But when the temperature = -15 the HEX value is F0

How can i convert this HEX value to -15?

Tnx in advance
Philip
 
Top