doubleValue
double値〈倍精度浮動小数点値〉を返します
解説
double値〈倍精度浮動小数点値〉を返します。
レシーバーがテキストタイプのセルでなかったり、セル値がscannableでなかったら、0を返します。
引数
フレームワーク
ApplicationKit
クラス
NSCell
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [bCell1 setDoubleValue:12345.1234]; //bCell1はテキストフィールドセル NSLog([NSString stringWithFormat:@"%.3f",[bCell1 doubleValue]]); } @end