The number of bits used for the underlying binary representation of values of this type.
Required. Default implementation provided.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
Discussion
An unsigned, fixed-width integer type can represent values from 0 through (2 ** bit
, where **
is exponentiation. A signed, fixed-width integer type can represent values from -(2 ** (bit
through (2 ** (bit
. For example, the Int8
type has a bit
value of 8 and can store any integer in the range -128...127
.