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

# CFNumberFormatterGetLocale(_:)

Returns the locale object used to create the given number formatter object.

## Declaration

```swift
func CFNumberFormatterGetLocale(_ formatter: CFNumberFormatter!) -> CFLocale!
```

## Parameters

- `formatter`: The number formatter to examine.

## Return Value

Return Value The locale used to create formatter. Ownership follows the The Get Rule.

## See Also

### Examining a Number Formatter

- [CFNumberFormatterCopyProperty(_:_:)](corefoundation/cfnumberformattercopyproperty(_:_:).md)
- [CFNumberFormatterGetFormat(_:)](corefoundation/cfnumberformattergetformat(_:).md)
- [CFNumberFormatterGetStyle(_:)](corefoundation/cfnumberformattergetstyle(_:).md)
