---
title: "format(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/formatstyle/format(_:)"
---

# format(_:)

Formats a value, using this style.

## Declaration

```swift
func format(_ value: Self.FormatInput) -> Self.FormatOutput
```

## Parameters

- `value`: The value to format.

## Return Value

Return Value A representation of value, in the FormatOutput type, formatted according to the style’s configuration.

## Discussion

Discussion Use this method when you want to create a single style instance, and then use it to format multiple values.
