---
title: formatWidth
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/numberformatter/formatwidth
---

# formatWidth

The format width used by the receiver.

## Declaration

```swift
var formatWidth: Int { get set }
```

## Discussion

Discussion The format width is the number of characters of a formatted number within a string that is either left justified or right justified based on the value contained in  paddingPosition.

## See Also

### Configuring Numeric Formats

- [format](foundation/numberformatter/format.md)
- [formattingContext](foundation/numberformatter/formattingcontext.md)
- [negativeFormat](foundation/numberformatter/negativeformat.md)
- [positiveFormat](foundation/numberformatter/positiveformat.md)
- [multiplier](foundation/numberformatter/multiplier.md)
