| void sign() { | |
| setState(() { | |
| if (double.parse(output) == 0.0) { | |
| } else { | |
| if (output[0] == '-') { | |
| output = output.substring(1); | |
| } else { | |
| output = '-' + output; | |
| } | |
| } | |
| }); | |
| } |
이거 어떻게 돌아가는 구조인지 설명좀 ㅠㅠ
일단 output이 0일경우 아무것도 안한다는 알겠는데
else그뒤로 어케 되는지 모르겠어
| void sign() { | |
| setState(() { | |
| if (double.parse(output) == 0.0) { | |
| } else { | |
| if (output[0] == '-') { | |
| output = output.substring(1); | |
| } else { | |
| output = '-' + output; | |
| } | |
| } | |
| }); | |
| } |
이거 어떻게 돌아가는 구조인지 설명좀 ㅠㅠ
일단 output이 0일경우 아무것도 안한다는 알겠는데
else그뒤로 어케 되는지 모르겠어
댓글 0