---
title: "formatted(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/binaryfloatingpoint/formatted(_:)-4ksqj"
---

# formatted(_:)

Format self with the given format.

## Declaration

```swift
func formatted<S>(_ format: S) -> S.FormatOutput where Self == S.FormatInput, S : FormatStyle
```
