| r55 vs r56 | ||
|---|---|---|
| ... | ... | |
| 3 | 3 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
| 4 | 4 | {{{#!wiki style="display: none;" |
| 5 | 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); | |
| 6 | '''al''' : "a" string length (integer); '''bl''' : "b" string length (integer) | |
| 7 | '''ad''' : "a" decimal point (integer); '''bd''' : "b" decimal point (integer); | |
| 8 | '''au''' : --gold-- "a" upper value (string→integer); '''bu''' : "b" upper value (string→integer); | |
| 9 | '''ab''' : "a" below value (string→integer); '''bb''' : "b" below value (string→integer); | |
| 10 | 10 | '''ap''' : "a" # of places of decimal (integer); '''bp''' : "b" # of places of decimal (integer); |
| 11 | 11 | 0.303과 0.0303은 다른 수이므로 자리수가 다름을 표시할 용도 |
| 12 | 12 | '''ru''' : result upper value (integer); '''rb''' : result below value (integer) |
| 13 | 13 | {{{#!if this.as=a.upString(), this.bs=b.upString(), this.ru=0+0, this.rb=0+0 |
| 14 | 14 | }}}{{{#!if this.al=as.length, this.bl=bs.length, this.ad=as.indexOf("."), this.bd=bs.indexOf(".") |
| 15 | 15 | }}}{{{#!if ad!=-1 |
| 16 | {{{#!if this.au=as.substr(0,a | |
| 17 | }}}}}}{{{#!if ad==-1 | |
| 16 | 소수점이 발견되는 자리 번호가 ad이므로 ad+1번에 해당되는 자리부터 끝까지 표기. | |
| 17 | {{{#!if this.au=as.substr(0,ad), this.ab=as.substr(ad+1, al-ad-1), this.ap=ab.length | |
| 18 | }}}{{{#!if au=="" | |
| 19 | .12345 식으로 기입할 경우 | |
| 20 | {{{#!if au=0+0 | |
| 21 | }}}}}}}}}{{{#!if ad==-1 | |
| 18 | 22 | {{{#!if this.au=as, ab="", ap=0+0 |
| 19 | 23 | }}}}}}{{{#!if bd!=-1 |
| 20 | {{{#!if this.bu=bs.substr.(0,b | |
| 24 | {{{#!if this.bu=bs.substr.(0,bd), this.bb=bs.substr(bd+1, bl-bd-1), this.bp=bb.length | |
| 25 | }}}{{{#!if bu=="" | |
| 26 | {{{#!if bu=0+0 | |
| 21 | 27 | }}}}}}}}}{{{#!if bd==-1 |
| 22 | 28 | {{{#!if this.bu=bs, bb="", bp=0+0 |
| 23 | 29 | }}}}}} |
| ... | ... |