PDA

View Full Version : Byte to integer ?



Michael
- 6th July 2017, 20:48
Is there any way I can get the integer value from a byte/word or vice versa with PBP ?

I need to monitor a word and compare it with a preset integer value. I'm using the DS18B20 and
it's the temperature variable that I'm wanting to decipher.

Thank you.

Michael
- 7th July 2017, 01:42
disregard. may be a dumb question -- need to look at something tomorrow. :)

Art
- 7th July 2017, 14:47
It kinda is. Bytes and words are both integers.
You can’t get anything but an integer value from it without a floating point library.