我尝试从屏幕上读取文本并将其更改为双倍并崩溃
public void equesionOperation(int signNum1) {
S_numInTV=TV_calcScreen.getText().toString();
S_numUp=TV_calcUp.getText().toString();
D_numIn=Double.parseDouble(S_numInTV);
D_numToCalc=Double.parseDouble(S_numUp);
switch (signNum1){
case 1: D_sum=D_numIn+D_numToCalc;break;
case 2: D_sum=D_numIn-D_numToCalc;break;
case 3: D_sum=D_numIn*D_numToCalc;break;
case 4: D_sum=D_numToCalc/D_numIn;break;
case 5: D_sum=Math.pow(D_numToCalc, D_numIn);break;
default: break;
}
S_sum=(""+D_numToCalc+" "+D_numIn);
}