Instance Property


The NSInteger value of the string.


@property(readonly) NSInteger integerValue;


The NSInteger value of the string, assuming a decimal representation and skipping whitespace at the beginning of the string. This property is 0 if the string doesn’t begin with a valid decimal text representation of a number.

This property uses formatting information stored in the non-localized value; use an NSScanner object for localized scanning of numeric values from a string.

See Also

Getting Numeric Values


The floating-point value of the string as a double.


The floating-point value of the string as a float.


The integer value of the string.


The long long value of the string.


The Boolean value of the string.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software