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

# format(_:)

Creates a string representation of a measurement.

## Declaration

```swift
func format(_ measurement: Measurement<UnitType>) -> String
```

## Parameters

- `measurement`: The measurement value to format.

## Return Value

Return Value A formatted representation of measurement, using the properties of this style.
