| r232 vs r233 | ||
|---|---|---|
| ... | ... | |
| 2 | 2 | ##디버그용 if 문법 ("문자열" 값으로 정의해야 합니다.) |
| 3 | 3 | {{{#!if a= ,b= ,f= |
| 4 | 4 | }}} |
| 5 | {{{#!wiki style="display: none; display: inline;" | |
| 6 | 5 | ##== 변수 설명 == |
| 7 | 6 | '''as''' : "a" value to string; '''bs''' : "b" value to string; |
| 8 | 7 | '''al''' : "a" string length (integer); '''bl''' : "b" string length (integer) |
| ... | ... | |
| 391 | 390 | {{{#!if ((+au==0)&&(+ab==0))&&((+bu!=0)||(+bb!=0)) |
| 392 | 391 | {{{#!if rs="", ru="0", rb="", ri="", rp=0, ns="" |
| 393 | 392 | }}}}}} |
| 394 | }}} | |
| 393 | }}}}}} | |
| 395 | 394 | 곱셈과 나눗셈에서 a와 b 모두 0이 아닌 경우를 봅니다. |
| 396 | 395 | {{{#!if ((+au!=0)||(+ab!=0))&&((+bu!=0)||(+bb!=0)) |
| 397 | 396 | |
| ... | ... | |
| 426 | 425 | }}} |
| 427 | 426 | }}} |
| 428 | 427 | 여기까지 곱셈 또는 나눗셈에서 숫자를 초기화하는 과정입니다. |
| 429 | }}} | |
| 428 | }}} | |
| 430 | 429 | |
| 431 | 430 | a와 b 모두 0이 아닌 경우에서 곱셈을 연산하는 과정입니다. |
| 432 | 431 | {{{#!if (f=="*")&&((+au!=0)||(+ab!=0))&&((+bu!=0)||(+bb!=0)) |
| ... | ... | |
| 1551 | 1550 | '''rl''' : result string length to output; '''p''' : a point of string(s); |
| 1552 | 1551 | ru는 계산결과에서 소수점 위 자리이므로, dot(.)이 나오지 않습니다. |
| 1553 | 1552 | ##여기까지 주석(주석 아님) |
| 1554 | }}} | |
| 1553 | }}}{{{#!wiki style="font-weight: 300; font-size: 20px;" | |
| 1555 | 1554 | {{{#!if this.sa=(this.a!="")&&(this.a!=null), this.sb=(this.b!="")&&(this.b!=null), this.sf=(this.f=='+')||(this.f=='-')||(this.f=='*')||(this.f=='/') |
| 1556 | 1555 | }}}{{{#!if !sa&&!sb&&!sf |
| 1557 | 1556 | 변수를 입력하세요... |
| ... | ... |