[Gambas-user] BYTE data type

nando nando_f at ...951...
Sun May 22 20:45:01 CEST 2005


If you use BYTE, remember that the math is unsigned.

...
DIM b AS BYTE

b = 0
DEC b    'b is 255 and not -1

....
b = 127
INC b    'b is 128 and not -128


...
b = 255
INC b     'b is 0

....

-Fernando





More information about the User mailing list