---
title: "CFNumberFormatterGetFormat(_:)"
framework: Core Foundation
role: symbol
role_heading: Function
path: "corefoundation/cfnumberformattergetformat(_:)"
---

# CFNumberFormatterGetFormat(_:)

Returns a format string for the given number formatter object.

## Declaration

```swift
func CFNumberFormatterGetFormat(_ formatter: CFNumberFormatter!) -> CFString!
```

## Parameters

- `formatter`: The number formatter to examine.

## Return Value

Return Value The format string for formatter as was specified by calling the CFNumberFormatterSetFormat(_:_:) function, or derived from the number formatter’s style. See Creating and Using CFNumberFormatter Objects for more information. Ownership follows the The Get Rule.

## See Also

### Examining a Number Formatter

- [CFNumberFormatterCopyProperty(_:_:)](corefoundation/cfnumberformattercopyproperty(_:_:).md)
- [CFNumberFormatterGetLocale(_:)](corefoundation/cfnumberformattergetlocale(_:).md)
- [CFNumberFormatterGetStyle(_:)](corefoundation/cfnumberformattergetstyle(_:).md)
