---
title: "init(integerLiteral:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/double/init(integerliteral:)"
---

# init(integerLiteral:)

Creates an instance initialized to the specified integer value.

## Declaration

```swift
init(integerLiteral value: Int64)
```

## Parameters

- `value`: The value to create.

## Discussion

Discussion Do not call this initializer directly. Instead, initialize a variable or constant using an integer literal. For example: let x = 23 In this example, the assignment to the x constant calls this integer literal initializer behind the scenes.

## See Also

### Infrequently Used Functionality

- [init()](swift/double/init().md)
- [init(floatLiteral:)](swift/double/init(floatliteral:).md)
- [init(integerLiteral:)](swift/double/init(integerliteral:)-6hc7j.md)
- [Double.FloatLiteralType](swift/double/floatliteraltype.md)
- [Double.IntegerLiteralType](swift/double/integerliteraltype.md)
- [advanced(by:)](swift/double/advanced(by:).md)
- [distance(to:)](swift/double/distance(to:).md)
- [Double.Stride](swift/double/stride.md)
- [write(to:)](swift/double/write(to:).md)
- [hashValue](swift/double/hashvalue.md)
