//Declaring of "Total Statements"
double NetSalary, PensionFundPercentage, grossSalary, TaxableAmount, MonthlySalary, Allowance, Paye, Uif, MedicalAid, totalDeduction;
double PensionFund;
double Other = 0;
double.TryParse(txtOtherDeductions.Text, out Other);
//Convert Statements
Allowance = Convert.ToDouble(txtDeductions.Text);
PensionFund = Convert.ToDouble(txtPenFund.Text);
Paye = Convert.ToDouble(txtPayasUEarn.Text);
IM UNABLE TO CALCULTE工资构成危害引述的金额类型“System.FormatException”的未处理的异常出现在mscorlib.dll其他信息:输入字符串的不正确的格式
错误非常明显,异常行为您提供所需的所有信息,txtPenFund.Text的值不能被解析为双精度值。 – Gusman
txtPenFund.Text conatins的值是什么?错误说它包含除了numaric – Ram
我不明白... –