---
title: littleEndian
framework: swift
role: symbol
role_heading: Instance Property
path: swift/int/littleendian
---

# littleEndian

The little-endian representation of this integer.

## Declaration

```swift
var littleEndian: Self { get }
```

## Discussion

Discussion If necessary, the byte order of this value is reversed from the typical byte order of this integer type. On a little-endian platform, for any integer x, x == x.littleEndian.

## See Also

### Working with Byte Order

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