---
title: compactName
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/numberformatstyleconfiguration/notation/compactname
---

# compactName

A locale-appropriate compact name notation.

## Declaration

```swift
static var compactName: NumberFormatStyleConfiguration.Notation { get }
```

## Discussion

Discussion A compact name notation, when available in the format style’s locale, that uses prefixes or suffixes corresponding to powers of ten. The following example shows a compact name notation in the fr_FR locale: let compactNameFormatted = 1234.formatted(.number     .locale(Locale(identifier: "fr_FR"))     .notation(.compactName)) // "1,2 k"

## See Also

### Notations

- [automatic](foundation/numberformatstyleconfiguration/notation/automatic.md)
- [scientific](foundation/numberformatstyleconfiguration/notation/scientific.md)
