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

# formatted()

Format self with FloatingPointFormatStyle().

## Declaration

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