---
title: "format(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/bytecountformatstyle/attributed-swift.struct/format(_:)"
---

# format(_:)

Formats a numeric byte count, using this style.

## Declaration

```swift
func format(_ value: Int64) -> AttributedString
```

## Parameters

- `value`: The 64-bit byte count to format.

## Return Value

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