The number of bits in the binary representation of this value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
var bitWidth: Int { get }
The number of bits in the binary representation of this value.
SDK
Framework
var bitWidth: Int { get }
static var bit Width: IntThe number of bits used for the underlying binary representation of values of this type.
var nonzero Bit Count: IntThe number of bits equal to 1 in this value’s binary representation.
var leading Zero Bit Count: IntThe number of leading zeros in this value’s binary representation.
var trailing Zero Bit Count: IntThe number of trailing zeros in this value’s binary representation.
var words: Int .WordsA collection containing the words of this value’s binary representation, in order from the least significant to most significant.
struct Int .WordsA type that represents the words of this integer.