---
title: StaticBigInt
framework: swift
role: symbol
role_heading: Structure
path: swift/staticbigint
---

# StaticBigInt

An immutable arbitrary-precision signed integer.

## Declaration

```swift
@frozen struct StaticBigInt
```

## Overview

Overview StaticBigInt is primarily intended to be used as the associated type of an ExpressibleByIntegerLiteral conformance. extension UInt256: ExpressibleByIntegerLiteral {     public init(integerLiteral value: StaticBigInt) {         precondition(             value.signum() >= 0 && value.bitWidth <= 1 + Self.bitWidth,             "integer overflow: '\(value)' as '\(Self.self)'"         )         self.words = Words()         for wordIndex in 0..<Words.count {             self.words[wordIndex] = value[wordIndex]         }     } }

## Topics

### Instance Properties

- [bitWidth](swift/staticbigint/bitwidth.md)

### Instance Methods

- [signum()](swift/staticbigint/signum().md)

### Subscripts

- [subscript(_:)](swift/staticbigint/subscript(_:).md)

### Type Aliases

- [StaticBigInt.IntegerLiteralType](swift/staticbigint/integerliteraltype.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](swift/staticbigint/customdebugstringconvertible-implementations.md)
- [CustomReflectable Implementations](swift/staticbigint/customreflectable-implementations.md)
- [ExpressibleByIntegerLiteral Implementations](swift/staticbigint/expressiblebyintegerliteral-implementations.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomReflectable](swift/customreflectable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Value Literals

- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [ExpressibleByBooleanLiteral](swift/expressiblebybooleanliteral.md)
- [ExpressibleByNilLiteral](swift/expressiblebynilliteral.md)
