Chat with our AI personalities
byte has 8 bits all bits at 0 = zero all bits at 1 = 255
An 8-bit unsigned integer can represent values ranging from 0 to 255. This is because, with 8 bits, there are (2^8 = 256) possible combinations of binary digits. Therefore, the smallest value is 0 (all bits are 0) and the largest value is 255 (all bits are 1).
The only two numbers that represent a binary digit are 0 and 1
The range for signed numbers is -128 to +127. The range for signed numbers is 0 to 255.
11111111 (base 2, also called biinary) represents 255. This is all 8 bits of a byte have a value of 1. A byte can represent 256 different values (0 to 255)