setExponentSymbol:
現在の指数記号をセットします
-(void)setExponentSymbol:(NSString *)string:
解説
現在の指数記号をセットします。
返り値
( void )
なし
引数
( NSString * )string
フレームワーク
Foundation
クラス
NSNumberFormatter
Instance Methods
使用可能
10.4
参照
-exponentSymbol
例文
#import "MyObject.h" @implementation MyObject // - (IBAction)myAction:(id)sender { NSNumberFormatter *numFormat = [[[NSNumberFormatter alloc] init] autorelease] ; [numFormat setFormatterBehavior: NSNumberFormatterBehavior10_4 ]; [numFormat setExponentSymbol:@"E"]; NSLog(@"exponentSymbol %@",[numFormat exponentSymbol]); } @end