| r54 vs r55 | ||
|---|---|---|
| 1 | 1 | [[분류:냥]][Include(틀:상세 내용, 설명대상=원본, 문서명=틀\:계산기)] |
| 2 | 2 | == 2-2 == |
| 3 | 3 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
| 4 | ##as : "a" value to string; bs : "b" value to string; al : "a" string length; bl : "b" string length | |
| 5 | ##ad : "a" decimal point; bd : "b" decimal point; au : --gold-- "a" upper value (integer); bu : "b" upper value (integer); | |
| 6 | ##ab : "a" below value (integer); bb : "b" below value (integer); ap : "a" places of decimal; bp : "b" places of decimal; | |
| 7 | ##ru : result upper value (integer); rb : result below value (integer) | |
| 8 | 4 | {{{#!wiki style="display: none;" |
| 5 | '''as''' : "a" value to string; '''bs''' : "b" value to string; | |
| 6 | '''al''' : "a" string length; '''bl''' : "b" string length | |
| 7 | '''ad''' : "a" decimal point; '''bd''' : "b" decimal point; | |
| 8 | '''au''' : --gold-- "a" upper value (integer); '''bu''' : "b" upper value (integer); | |
| 9 | '''ab''' : "a" below value (integer); '''bb''' : "b" below value (integer); | |
| 10 | '''ap''' : "a" # of places of decimal (integer); '''bp''' : "b" # of places of decimal (integer); | |
| 11 | 0.303과 0.0303은 다른 수이므로 자리수가 다름을 표시할 용도 | |
| 12 | '''ru''' : result upper value (integer); '''rb''' : result below value (integer) | |
| 9 | 13 | {{{#!if this.as=a.upString(), this.bs=b.upString(), this.ru=0+0, this.rb=0+0 |
| 10 | 14 | }}}{{{#!if this.al=as.length, this.bl=bs.length, this.ad=as.indexOf("."), this.bd=bs.indexOf(".") |
| 11 | 15 | }}}{{{#!if ad!=-1 |
| ... | ... | |
| 17 | 21 | }}}}}}}}}{{{#!if bd==-1 |
| 18 | 22 | {{{#!if this.bu=bs, bb="", bp=0+0 |
| 19 | 23 | }}}}}} |
| 20 | ## | |
| 24 | ##여기까지 주석 | |
| 21 | 25 | }}}{{{#!if as[0]!=45 |
| 22 | 26 | @a@}}}{{{#!if as[0]==45 |
| 23 | 27 | (@a@)}}}{{{#!if f=='+' |
| ... | ... |