bit
One on-off switch, written 0 or 1.
A bit is one binary digit; an n-bit integer type has 2^n possible values.
Examples
0b1010is 10 written in binary, four bits; au8has eight bits, so it holds 0 to 255.
See also
One on-off switch, written 0 or 1.
A bit is one binary digit; an n-bit integer type has 2^n possible values.
Examples
0b1010 is 10 written in binary, four bits; a u8 has eight bits, so it holds 0 to 255.
See also