---
title: "init(littleEndian:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/int/init(littleendian:)"
---

# init(littleEndian:)

Creates an integer from its little-endian representation, changing the byte order if necessary.

## Declaration

```swift
init(littleEndian value: Self)
```

## Parameters

- `value`: A value to use as the little-endian representation of the new integer.

## See Also

### Working with Byte Order

- [byteSwapped](swift/int/byteswapped.md)
- [littleEndian](swift/int/littleendian.md)
- [bigEndian](swift/int/bigendian.md)
- [init(bigEndian:)](swift/int/init(bigendian:).md)
