-127 or -128
Chat with our AI personalities
255
If the byte represents a signed number, values commonly go from minus 128 to plus 127. If the byte represents an unsigned number, values commonly go from 0 to 255.
There is basically one way to write hexadecimal numbers. Of course, the numbers represent information, and this information can be represented in may other ways; some of them are in binary (4 binary digits for each hexadecimal digit), in decimal, or each byte as as decimal number (as in the dotted decimal notation used for IP version 4 numbers).
There are 8 bits in a byte, so a two byte integer would be 16 bits. The largest 16 bit integer possible would be 11111111111111112, which is 65535 in base 10.
The highest number that can be represented in a byte is 255: 1 1 1 1 1 1 1 1If you want 256, then you need another bit ... a ' 1 ' before a byte of all zeros.