| r319 vs r320 | ||
|---|---|---|
| ... | ... | |
| 5357 | 5357 | '''ad''' : "a" decimal point of string variable 'ma' (integer); |
| 5358 | 5358 | '''bd''' : "b" decimal point of string variable 'mb' (integer); |
| 5359 | 5359 | '''md''' : displaying mode number (string→integer); '''ms''' : message for correction (string) |
| 5360 | '''tm''' : temporary string, or transaction message (string); '''tn''' : temporary string 2 (string); | |
| 5360 | 5361 | '''tx''' : temporary value 1 (integer); '''ty''' : temporary value 2 (integer); '''tz''' : temporary value 3 (integer); |
| 5361 | 5362 | ru는 계산결과에서 소수점 위 자리이므로, dot(.)이 나오지 않습니다. |
| 5362 | 5363 | ##여기까지 주석(주석 아님) |
| 5363 | 5364 | }}}{{{#!wiki style="font-weight: 300; font-size: 17.5px;" |
| 5364 | {{{#!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=='/'), this.ad=ma.indexOf("."), this.bd=mb.indexOf("."), ps=false | |
| 5365 | {{{#!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=='/'), this.ad=ma.indexOf("."), this.bd=mb.indexOf("."), ps=false, tm="", tn="" | |
| 5365 | 5366 | }}}{{{#!if !sa&&!sb&&!sf |
| 5366 | 5367 | 변수를 입력하세요... }}}{{{#!if !(sa&&sb&&sf) |
| 5367 | 5368 | ({{{#!if !sa |
| ... | ... | |
| 5376 | 5377 | (@a@)}}} {{{#!if as.length>=20 |
| 5377 | 5378 | [br]}}}@f@ {{{#!if bs[0]!=45 |
| 5378 | 5379 | @b@}}}{{{#!if bs[0]==45 |
| 5379 | (@b@)}}} {{{#!if (ma!=as)||(mb!=bs)||(+md==3)||(+md==4) | |
| 5380 | (@b@)}}} {{{#!if (ma!=as)||(mb!=bs)||(+md==3)||(+md==4) | |
| 5380 | 5381 | {{{#!if (as.length+bs.length>=30) |
| 5381 | 5382 | [br]}}}→ {{{#!if ms=ma, ad!=-1 |
| 5382 | 5383 | {{{#!if ms=ma.substr(0,ad) |
| 5383 | }}}}}}{{{#!if ms[0]==45 | |
| 5384 | }}}}}}{{{#!if (+md!=3)&&(+md!=4) | |
| 5385 | {{{#!if ms[0]!=45 | |
| 5386 | @ms@}}}{{{#!if ms[0]==45 | |
| 5387 | (@ms@)}}}}}}{{{#!if (+md==3)||(+md==4) | |
| 5388 | {{{#!if ms[0]==45 | |
| 5384 | 5389 | {{{#!if ms=ms.substr(1), ps=true |
| 5385 | }}}}}} @f@ {{{#!if ms=mb, bd!=-1 | |
| 5390 | }}}}}}{{{#!if tx=ms.length, ty=tx/(+md), tz=tx%(+md), tn=ms, tz>0 | |
| 5391 | {{{#!if tm=tn.substr(0,tz), tn=substr(tz) | |
| 5392 | }}}}}}{{{#!if (ty>0)&&(tz>0) | |
| 5393 | {{{#!if tm+="," | |
| 5394 | }}}}}}{{{#!if ty-->0 | |
| 5395 | {{{#!if tm+=tn.substr(0,+md), tn=substr(+md) | |
| 5396 | }}}}}}{{{#!if ty-->0 | |
| 5397 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5398 | }}}}}}{{{#!if ty-->0 | |
| 5399 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5400 | }}}}}}{{{#!if ty-->0 | |
| 5401 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5402 | }}}}}}{{{#!if ty-->0 | |
| 5403 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5404 | }}}}}}{{{#!if ty-->0 | |
| 5405 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5406 | }}}}}}{{{#!if !ps | |
| 5407 | @tm@}}}{{{#!if ps | |
| 5408 | (-@tm@)}}}}}} @f@ {{{#!if ms=mb, bd!=-1 | |
| 5386 | 5409 | {{{#!if ms=mb.substr(0,bd) |
| 5387 | }}}}}} }}}{{{#!if (bs.length>=20)||(as.length+bs.length>=30) | |
| 5410 | }}}}}}{{{#!if (+md!=3)&&(+md!=4) | |
| 5411 | {{{#!if ms[0]!=45 | |
| 5412 | @ms@}}}{{{#!if ms[0]==45 | |
| 5413 | (@ms@)}}}}}}{{{#!if (+md==3)||(+md==4) | |
| 5414 | {{{#!if ms[0]==45 | |
| 5415 | {{{#!if ms=ms.substr(1), ps=true | |
| 5416 | }}}}}}{{{#!if tx=ms.length, ty=tx/(+md), tz=tx%(+md), tn=ms, tz>0 | |
| 5417 | {{{#!if tm=tn.substr(0,tz), tn=substr(tz) | |
| 5418 | }}}}}}{{{#!if (ty>0)&&(tz>0) | |
| 5419 | {{{#!if tm+="," | |
| 5420 | }}}}}}{{{#!if ty-->0 | |
| 5421 | {{{#!if tm+=tn.substr(0,+md), tn=substr(+md) | |
| 5422 | }}}}}}{{{#!if ty-->0 | |
| 5423 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5424 | }}}}}}{{{#!if ty-->0 | |
| 5425 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5426 | }}}}}}{{{#!if ty-->0 | |
| 5427 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5428 | }}}}}}{{{#!if ty-->0 | |
| 5429 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5430 | }}}}}}{{{#!if ty-->0 | |
| 5431 | {{{#!if tm+=","+tn.substr(0,+md), tn=substr(+md) | |
| 5432 | }}}}}}{{{#!if !ps | |
| 5433 | @tm@}}}{{{#!if ps | |
| 5434 | (-@tm@)}}}}}} }}}{{{#!if (bs.length>=20)||(as.length+bs.length>=30) | |
| 5388 | 5435 | [br]}}}= {{{#!if rs!="" |
| 5389 | 5436 | }}}{{{#!if (f=="*")||(f=="/") |
| 5390 | 5437 | @ns@{{{#!if rs!="" |
| ... | ... |