| r317 vs r318 | ||
|---|---|---|
| ... | ... | |
| 30 | 30 | |
| 31 | 31 | ##== 초기화 == |
| 32 | 32 | 값을 미리 정의하여 초기화합니다. 중간에 --장난으로-- 계산에 사용되는 변수에 값을 부여한 채로 include 하더라도 이를 무시합니다. |
| 33 | {{{#!if this.as=a.toString(), this.bs=b.toString(), this.rs=0+0, this.ru=0+0, this.rb=0+0, this.ri=0+0, this.rp=0+0, this.i=0+0, this.tu=0, this.tv=1+0, this.tw=0, this.tx=0, this.ty=0, this.ea=0+0, this.eb=0+0, this.wa=0+0, this.wb=0+0, this.ps=false, this.ts=false, this.br=false, this.ns="", this.ma="", this.mb="", this.tm="", this.tn="", this.pd="000000000000000000" | |
| 33 | {{{#!if this.as=a.toString(), this.bs=b.toString(), this.rs=0+0, this.ru=0+0, this.rb=0+0, this.ri=0+0, this.rp=0+0, this.i=0+0, this.tu=0, this.tv=1+0, this.tw=0, this.tx=0, this.ty=0, this.ea=0+0, this.eb=0+0, this.wa=0+0, this.wb=0+0, this.ps=false, this.ts=false, this.br=false, this.ns="", this.ma="", this.mb="", this.tm="", this.tn="", this.ms="", this.pd="000000000000000000" | |
| 34 | 34 | }}}{{{#!if this.al=as.length, this.bl=bs.length, this.ad=as.indexOf("."), this.bd=bs.indexOf(".") |
| 35 | 35 | }}}{{{#!if ad!=-1 |
| 36 | 36 | 소수점이 발견되는 자리 번호가 ad이므로 ad+1번에 해당되는 자리부터 끝까지 표기합니다. |
| ... | ... | |
| 5354 | 5354 | ##== 아래 출력 변수 설명 == |
| 5355 | 5355 | '''sa''' : searching a; '''sb''' : searching b; '''sf''' : searching f; |
| 5356 | 5356 | '''rl''' : result string length to output; '''p''' : a point of string(s); '''ps''' : pass |
| 5357 | '''ad''' : "a" decimal point (integer); | |
| 5358 | '''md''' : displaying mode number (string→integer); | |
| 5357 | '''ad''' : "a" decimal point of string variable 'ma' (integer); | |
| 5358 | '''bd''' : "b" decimal point of string variable 'mb' (integer); | |
| 5359 | '''md''' : displaying mode number (string→integer); '''ms''' : message for correction (string) | |
| 5359 | 5360 | '''tx''' : temporary value 1 (integer); '''ty''' : temporary value 2 (integer); '''tz''' : temporary value 3 (integer); |
| 5360 | 5361 | ru는 계산결과에서 소수점 위 자리이므로, dot(.)이 나오지 않습니다. |
| 5361 | 5362 | ##여기까지 주석(주석 아님) |
| ... | ... | |
| 5375 | 5376 | (@a@)}}} {{{#!if as.length>=20 |
| 5376 | 5377 | [br]}}}@f@ {{{#!if bs[0]!=45 |
| 5377 | 5378 | @b@}}}{{{#!if bs[0]==45 |
| 5378 | (@b@)}}}{{{#!if (ma!=as)||(mb!=bs)||(+md==3)||(+md==4), false | |
| 5379 | (@b@)}}} {{{#!if (ma!=as)||(mb!=bs)||(+md==3)||(+md==4), false | |
| 5379 | 5380 | {{{#!if (as.length+bs.length>=30) |
| 5380 | [br]}}}→ {{{#!if ad= | |
| 5381 | ||
| 5382 | ||
| 5381 | [br]}}}→ {{{#!if ms=ma, ad!=-1 | |
| 5382 | {{{#!if ms=ma.substr(0,ad) | |
| 5383 | }}}}}} @f@ {{{#!if ms=mb, bd!=-1 | |
| 5384 | {{{#!if ms=mb.substr(0,bd) | |
| 5385 | }}}}}} }}}{{{#!if (bs.length>=20)||(as.length+bs.length>=30) | |
| 5383 | 5386 | [br]}}}= {{{#!if rs!="" |
| 5384 | 5387 | }}}{{{#!if (f=="*")||(f=="/") |
| 5385 | 5388 | @ns@{{{#!if rs!="" |
| ... | ... |