macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

longLongValue

INDEX>Foundation>NSString>

倍々精度値を返します。

解説

倍々精度値を返します。

返り値

( long long )

オブジェクト

引数

クラス

NSString

Instance Methods

使用可能

10.5

参照

例文

longLongValue
Returns the long long value of the receiver’s text.

- (long long)longLongValue

Return Value
The long long value of the receiver’s text, assuming a decimal representation and skipping whitespace at the beginning of the string. Returns LLONG_MAX or LLONG_MIN on overflow. Returns 0 if the receiver doesn’t begin with a valid decimal text representation of a number.

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

Availability
Available in Mac OS X v10.5 and later.
See Also
– doubleValue
– floatValue
– scanInt: (NSScanner)
Declared In
NSString.h