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

# format(_:)

Formats an integer, using this style.

## Declaration

```swift
func format(_ value: Value) -> String
```

## Parameters

- `value`: The integer to format.

## Return Value

Return Value A string representation of value, 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 integers. To format a single integer, use the BinaryInteger instance method formatted(_:), passing in an instance of IntegerFormatStyle.Currency, or formatted() to use a default style.
