int i =200;
if( i%100 == 0){
NSLog(@"是100的整數");
}else{
NSLog(@"不是100的整數");
}
int inputMoney =[importTextField.text intValue];
if (inputMoney%100 != 0) {
[YRProgressHUD autoShowHUDAddedTo:self.view withText:@"請輸入金額為100倍的整數"];
return;
}
int i =200;
if( i%100 == 0){
NSLog(@"是100的整數");
}else{
NSLog(@"不是100的整數");
}
int inputMoney =[importTextField.text intValue];
if (inputMoney%100 != 0) {
[YRProgressHUD autoShowHUDAddedTo:self.view withText:@"請輸入金額為100倍的整數"];
return;
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。