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

# CFNumberFormatterGetDecimalInfoForCurrencyCode(_:_:_:)

Returns the number of fraction digits that should be displayed, and the rounding increment, for a given currency.

## Declaration

```swift
func CFNumberFormatterGetDecimalInfoForCurrencyCode(_ currencyCode: CFString!, _ defaultFractionDigits: UnsafeMutablePointer<Int32>!, _ roundingIncrement: UnsafeMutablePointer<Double>!) -> Bool
```

## Parameters

- `currencyCode`: A string containing a ISO 4217 3-letter currency code. For example, AUD for Australian Dollars, EUR for Euros.
- `defaultFractionDigits`: Upon return, contains the number of fraction digits that should be displayed for the currency specified by currencyCode.
- `roundingIncrement`: Upon return, contains the rounding increment for the currency specified by currencyCode, or 0.0 if no rounding is done by the currency.

## Return Value

Return Value true if the information was obtained successfully, otherwise false (for example, if the currency code is unknown or the information is not available).

## Discussion

Discussion The returned values are not localized because these are properties of the currency.

## See Also

### Formatting Values

- [CFNumberFormatterCreateNumberFromString(_:_:_:_:_:)](corefoundation/cfnumberformattercreatenumberfromstring(_:_:_:_:_:).md)
- [CFNumberFormatterCreateStringWithNumber(_:_:_:)](corefoundation/cfnumberformattercreatestringwithnumber(_:_:_:).md)
- [CFNumberFormatterCreateStringWithValue(_:_:_:_:)](corefoundation/cfnumberformattercreatestringwithvalue(_:_:_:_:).md)
- [CFNumberFormatterGetValueFromString(_:_:_:_:_:)](corefoundation/cfnumberformattergetvaluefromstring(_:_:_:_:_:).md)
