CFNumberFormatterGetDecimalInfoForCurrencyCode(_:_:_:)
Returns the number of fraction digits that should be displayed, and the rounding increment, for a given currency.
Declaration
func CFNumberFormatterGetDecimalInfoForCurrencyCode(_ currencyCode: CFString!, _ defaultFractionDigits: UnsafeMutablePointer<Int32>!, _ roundingIncrement: UnsafeMutablePointer<Double>!) -> BoolParameters
- 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, or0.0if no rounding is done by the currency.
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
The returned values are not localized because these are properties of the currency.