Carbon


CFNumberGetType

Header: CFNumber.h Carbon status: Supported

Obtains the type used by the specified CFNumber object to store its value.

CFNumberType CFNumberGetType (
    CFNumberRef number
);
number

The CFNumber object whose storage type you wish to obtain.

function result

A constant indicating the data type of the value contained in the specified CFNumber object. See CFNumber Type Flags for a list of possible values.

DISCUSSION

The type specified in the call to CFNumberCreate is not necessarily preserved when creating a new CFNumber object. The CFNumber will be created using whatever internal storage type the creation function deems appropriate.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when CoreFoundationLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by CoreFoundationLib 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 3/8/2000)