当我试图按下calculate按钮时,问题是prob字符串的格式不正确

yeotifhr  于 2021-07-24  发布在  Java
关注(0)|答案(0)|浏览(128)

private:system::void按钮1\u单击(system::object^sender,system::eventargs^e)

float price = Convert::ToDouble(textBox2->Text);
float downpay = Convert::ToDouble(textBox3->Text);
float interestrate = Convert::ToDouble(textBox4->Text);
float yearofpay = Convert::ToDouble(comboBox1->Text);
double Total;

Total = ((price - downpay) + (interestrate / 100 * (price - downpay) * yearofpay)) / (yearofpay * 12);
label7->Text = Total.ToString("F2");

}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题