I am testing the following code:
I need "bb" to be 152 after "bb + 256" was executed. But I am getting "-104". How do I get this to be 152?
Can someone please help with this? Even trying Bit.And(bb, 0xFF) gives -104 and not 152.
B4X:
Dim bb As Byte = -104
Log("bb = " & bb)
bb = bb + 256
Log("bb + 256 = " & bb)
I need "bb" to be 152 after "bb + 256" was executed. But I am getting "-104". How do I get this to be 152?
Can someone please help with this? Even trying Bit.And(bb, 0xFF) gives -104 and not 152.