---
title: bitWidth
framework: swift
role: symbol
role_heading: Instance Property
path: swift/binaryinteger/bitwidth
---

# bitWidth

The number of bits in the current binary representation of this value.

## Declaration

```swift
var bitWidth: Int { get }
```

## Discussion

Discussion This property is a constant for instances of fixed-width integer types.

## See Also

### Working with Binary Representation

- [trailingZeroBitCount](swift/binaryinteger/trailingzerobitcount.md)
- [words](swift/binaryinteger/words-swift.property.md)
- [Words](swift/binaryinteger/words-swift.associatedtype.md)
