---
title: formatted()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/binaryinteger/formatted()
---

# formatted()

Format self using IntegerFormatStyle()

## Declaration

```swift
func formatted() -> String
```
