左に 0 を含む 4 桁の数字をフォーマットする必要があります。
if (Tipo.selectedSegmentIndex == 2 ) {
float a = [N1.text floatValue]; float b = [N2.text floatValue];
float c = a*b;
R.text = [[NSString alloc] initWithFormat:@"%.0f",c];
}
左に 0 を含む 4 桁の数字をフォーマットする必要があります。
if (Tipo.selectedSegmentIndex == 2 ) {
float a = [N1.text floatValue]; float b = [N2.text floatValue];
float c = a*b;
R.text = [[NSString alloc] initWithFormat:@"%.0f",c];
}