| r65 vs r66 | ||
|---|---|---|
| 1 | 1 | [[분류:냥]][Include(틀:상세 내용, 설명대상=원본, 문서명=틀\:계산기)] |
| 2 | 2 | == 2-2 == |
| 3 | 3 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
| 4 | {{{#!wiki style="display: none | |
| 4 | {{{#!wiki style="display: none" | |
| 5 | 5 | ##초기화 |
| 6 | 6 | '''as''' : "a" value to string; '''bs''' : "b" value to string; |
| 7 | 7 | '''al''' : "a" string length (integer); '''bl''' : "b" string length (integer) |
| ... | ... | |
| 11 | 11 | '''ap''' : "a" # of places of decimal (integer); '''bp''' : "b" # of places of decimal (integer); |
| 12 | 12 | 0.303과 0.0303은 다른 수이므로 자리수가 다름을 표시할 용도 |
| 13 | 13 | '''ru''' : result upper value (integer); '''rb''' : result below value (integer) |
| 14 | {{{#!if this.as=a. | |
| 14 | {{{#!if this.as=a.toString(), this.bs=b.toString(), this.ru=0+0, this.rb=0+0 | |
| 15 | 15 | }}}{{{#!if this.al=as.length, this.bl=bs.length, this.ad=as.indexOf("."), this.bd=bs.indexOf(".") |
| 16 | 16 | }}}{{{#!if ad!=-1 |
| 17 | 17 | 소수점이 발견되는 자리 번호가 ad이므로 ad+1번에 해당되는 자리부터 끝까지 표기. |
| ... | ... |