Instance Property

integerValue

The NSInteger value of the string.

Declaration

@property(readonly) NSInteger integerValue;

Discussion

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

doubleValue

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

floatValue

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

intValue

The integer value of the string.

longLongValue

The long long value of the string.

boolValue

The Boolean value of the string.