dim bytearray(4) as byte
bytearray(0)=202
When debugging, I moved cursor on "bytearray" and B4A shows that its value is [-54, 0, 0, 0]!
I can't believe my eyes, so I
dim I as int
I = bytearray(0)
The value of I is also -54!
How come byte data type has negative value?
Its value should be from 0 to 255.
How come byte data type has negative value?
How come byte data type has negative value?
My god! My god! My god!
bytearray(0)=202
When debugging, I moved cursor on "bytearray" and B4A shows that its value is [-54, 0, 0, 0]!
I can't believe my eyes, so I
dim I as int
I = bytearray(0)
The value of I is also -54!
How come byte data type has negative value?
Its value should be from 0 to 255.
How come byte data type has negative value?
How come byte data type has negative value?
My god! My god! My god!