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

# format(_:)

Formats a byte count measurment, using this style.

## Declaration

```swift
func format(_ value: Measurement<UnitInformationStorage>) -> AttributedString
```

## Parameters

- `value`: The byte count measurement 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.
