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

# CFNumberFormatterSetProperty(_:_:_:)

Sets a number formatter property using a key-value pair.

## Declaration

```swift
func CFNumberFormatterSetProperty(_ formatter: CFNumberFormatter!, _ key: CFNumberFormatterKey!, _ value: CFTypeRef!)
```

## Parameters

- `formatter`: The number formatter to modify.
- `key`: The name of the property of formatter to set. See doc://com.apple.corefoundation/documentation/CoreFoundation/number-formatter-property-keys for a description of possible values.
- `value`: The value of the specified key. This must be an instance of the correct CFType object for the corresponding key.

## See Also

### Configuring a Number Formatter

- [CFNumberFormatterSetFormat(_:_:)](corefoundation/cfnumberformattersetformat(_:_:).md)
