CFNumberFormatterCreateStringWithNumber(_:_:_:)
Returns a string representation of the given number using the specified number formatter.
Declaration
func CFNumberFormatterCreateStringWithNumber(_ allocator: CFAllocator!, _ formatter: CFNumberFormatter!, _ number: CFNumber!) -> CFString!Parameters
- allocator:
The allocator to use to allocate memory for the new object. Pass
NULLor Kcfallocatordefault to use the current default allocator. - formatter:
The number formatter to use.
- number:
The number from which to create a string representation.
Return Value
A new string that represents the given number in the specified format. Returns NULL if there was a problem creating the string. Ownership follows the The Create Rule.