r2
| 1 | [[분류:냥]][[분류:계산용 틀]]{{{#!wiki style="display: none;" |
|---|
| 2 | ##== 변수 설명 == |
|---|
| 3 | '''as''' : "a" value to string; '''bs''' : "b" value to string; |
|---|
| 4 | '''al''' : "a" string length (integer); '''bl''' : "b" string length (integer) |
|---|
| 5 | '''ad''' : "a" decimal point (integer); '''bd''' : "b" decimal point (integer); |
|---|
| 6 | '''au''' : --gold-- "a" upper value (string→integer); '''bu''' : "b" upper value (string→integer); |
|---|
| 7 | '''ab''' : "a" below value (string→integer); '''bb''' : "b" below value (string→integer); |
|---|
| 8 | '''ap''' : "a" # of places of decimal (for addition or subtraction); |
|---|
| 9 | '''ac''' : a '''c'''onstant of "a" for division (integer); |
|---|
| 10 | '''bp''' : "b" # of places of decimal (for addition or subtraction); |
|---|
| 11 | '''bc''' : a '''c'''onstant of "b" for division (integer); |
|---|
| 12 | 0.303과 0.0303은 다른 수이므로 자리수가 다름을 표시할 용도 |
|---|
| 13 | '''ru''' : "result" upper value (integer→string); '''rb''' : "result" below value (integer→string); |
|---|
| 14 | '''rp''' : "result" # of places of decimal (integer); |
|---|
| 15 | '''rs''' : "result" suprerior value (integer→string); '''ri''' : "result" inferior value (integer→string); |
|---|
| 16 | '''i''' : index; |
|---|
| 17 | '''tu''' : temporary value 1 (integer); '''tv''' : temporary value 2 (integer); |
|---|
| 18 | '''tw''' : temporary value 3 (integer); '''tx''' : temporary value 4 (integer→string); |
|---|
| 19 | '''ty''' : temporary value 5 (integer); '''tz''' : temporary value 6 (integer); |
|---|
| 20 | '''pd''' : padding with zeros. (string) |
|---|
| 21 | '''ps''' : pass (logical); '''ts''' : --not about gender-- test (logical) ; '''br''' : break (logical); |
|---|
| 22 | '''ea''' : error code about "a" (integer); '''eb''' : error code about "b" (integer); |
|---|
| 23 | '''wa''' : warning code about "a" (integer); '''wb''' : warning code about "b" (integer); |
|---|
| 24 | '''ma''' : message about "a" (string); '''mb''' : message about "b" (string); |
|---|
| 25 | '''tm''' : temporary string, or transaction message (string); '''tn''' : temporary string 2 (string); |
|---|
| 26 | '''ns''' : negative sign for multiplication and division (string); |
|---|
| 27 | ##== 초기화 == |
|---|
| 28 | {{{#!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" |
|---|
| 29 | }}}{{{#!if this.al=as.length, this.bl=bs.length, this.ad=as.indexOf("."), this.bd=bs.indexOf(".") |
|---|
| 30 | }}}{{{#!if ad!=-1 |
|---|
| 31 | {{{#!if this.au=as.substr(0,ad), this.ab=as.substr(ad+1, al-ad-1), this.ap=ab.length |
|---|
| 32 | }}}{{{#!if (au=="")||(au=="-")||(au=="+") |
|---|
| 33 | {{{#!if au="0" |
|---|
| 34 | }}}}}}}}}{{{#!if ad==-1 |
|---|
| 35 | {{{#!if this.au=as, ab="", ap=0+0, ad=au.length |
|---|
| 36 | }}}}}}{{{#!if bd!=-1 |
|---|
| 37 | {{{#!if this.bu=bs.substr(0,bd), this.bb=bs.substr(bd+1, bl-bd-1), this.bp=bb.length |
|---|
| 38 | }}}{{{#!if (bu=="")||(bu=="-")||(bu=="+") |
|---|
| 39 | {{{#!if bu="0" |
|---|
| 40 | }}}}}}}}}{{{#!if bd==-1 |
|---|
| 41 | {{{#!if this.bu=bs, bb="", bp=0+0, bd=bu.length |
|---|
| 42 | }}}}}} |
|---|
| 43 | ##== 유효성 검사 == |
|---|
| 44 | {{{#!if (as!=null)&&(bs!=null) |
|---|
| 45 | {{{#!if ts=(as.indexOf(".")==as.lastIndexOf(".")), br=ts?br:true, ea=ts?0:5 |
|---|
r3
| 46 | }}}{{{#!if ts&&!br |
|---|
r2
| 47 | {{{#!if tm=(au[0]==45)?au.substr(1):au, ts=(tm.length<=18), br=ts?br:true, ea=ts?0:1 |
|---|
r3
| 48 | }}}}}}{{{#!if ts&&!br |
|---|
r2
| 49 | {{{#!if tm="1"+tm, tn=+tm, tn=tn.toString(), ts=(tm==tn), br=ts?br:true, ea=ts?0:6 |
|---|
r3
| 50 | }}}}}}{{{#!if ts&&!br |
|---|
r2
| 51 | {{{#!if ab.length>=19 |
|---|
| 52 | {{{#!if wa=1, ab=ab.substr(0,18), ap=18 |
|---|
r3
| 53 | }}}}}}{{{#!if ts=(((ab[0]==null)||((ab[0]>=48)&&(ab[0]<=57)))&&((ab[1]==null)||((ab[1]>=48)&&(ab[1]<=57)))&&((ab[2]==null)||((ab[2]>=48)&&(ab[2]<=57)))&&((ab[3]==null)||((ab[3]>=48)&&(ab[3]<=57)))&&((ab[4]==null)||((ab[4]>=48)&&(ab[4]<=57)))&&((ab[5]==null)||((ab[5]>=48)&&(ab[5]<=57)))&&((ab[6]==null)||((ab[6]>=48)&&(ab[6]<=57)))&&((ab[7]==null)||((ab[7]>=48)&&(ab[7]<=57)))&&((ab[8]==null)||((ab[8]>=48)&&(ab[8]<=57)))&&((ab[9]==null)||((ab[9]>=48)&&(ab[9]<=57)))&&((ab[10]==null)||((ab[10]>=48)&&(ab[10]<=57)))&&((ab[11]==null)||((ab[11]>=48)&&(ab[11]<=57)))&&((ab[12]==null)||((ab[12]>=48)&&(ab[12]<=57)))&&((ab[13]==null)||((ab[13]>=48)&&(ab[13]<=57)))&&((ab[14]==null)||((ab[14]>=48)&&(ab[14]<=57)))&&((ab[15]==null)||((ab[15]>=48)&&(ab[15]<=57)))&&((ab[16]==null)||((ab[16]>=48)&&(ab[16]<=57)))&&((ab[17]==null)||((ab[17]>=48)&&(ab[17]<=57)))), br=ts?br:true, ea=ts?0:7 |
|---|
| 54 | }}}}}}{{{#!if br=false, ts=(bs.indexOf(".")==bs.lastIndexOf(".")), br=ts?br:true, eb=ts?0:5 |
|---|
| 55 | }}}{{{#!if ts&&!br |
|---|
r2
| 56 | {{{#!if tm=(bu[0]==45)?bu.substr(1):bu, ts=(tm.length<=18), br=ts?br:true, eb=ts?0:1 |
|---|
r3
| 57 | }}}}}}{{{#!if ts&&!br |
|---|
r2
| 58 | {{{#!if tm="1"+tm, tn=+tm, tn=tn.toString(), ts=(tm==tn), br=ts?br:true, eb=ts?0:6 |
|---|
r3
| 59 | }}}}}}{{{#!if ts&&!br |
|---|
r2
| 60 | {{{#!if bb.length>=19 |
|---|
| 61 | {{{#!if wb=1, bb=bb.substr(0,18), bp=18 |
|---|
| 62 | }}}}}}{{{#!if ts=(((bb[0]==null)||((bb[0]>=48)&&(bb[0]<=57)))&&((bb[1]==null)||((bb[1]>=48)&&(bb[1]<=57)))&&((bb[2]==null)||((bb[2]>=48)&&(bb[2]<=57)))&&((bb[3]==null)||((bb[3]>=48)&&(bb[3]<=57)))&&((bb[4]==null)||((bb[4]>=48)&&(bb[4]<=57)))&&((bb[5]==null)||((bb[5]>=48)&&(bb[5]<=57)))&&((bb[6]==null)||((bb[6]>=48)&&(bb[6]<=57)))&&((bb[7]==null)||((bb[7]>=48)&&(bb[7]<=57)))&&((bb[8]==null)||((bb[8]>=48)&&(bb[8]<=57)))&&((bb[9]==null)||((bb[9]>=48)&&(bb[9]<=57)))&&((bb[10]==null)||((bb[10]>=48)&&(bb[10]<=57)))&&((bb[11]==null)||((bb[11]>=48)&&(bb[11]<=57)))&&((bb[12]==null)||((bb[12]>=48)&&(bb[12]<=57)))&&((bb[13]==null)||((bb[13]>=48)&&(bb[13]<=57)))&&((bb[14]==null)||((bb[14]>=48)&&(bb[14]<=57)))&&((bb[15]==null)||((bb[15]>=48)&&(bb[15]<=57)))&&((bb[16]==null)||((bb[16]>=48)&&(bb[16]<=57)))&&((bb[17]==null)||((bb[17]>=48)&&(bb[17]<=57)))), br=ts?br:true, eb=ts?0:7 |
|---|
| 63 | }}}}}}}}} |
|---|
| 64 | |
|---|
| 65 | ##== 2차 초기화 == |
|---|
| 66 | 유효성 검사가 종료되었으면 ts와 br, ps를 false로 초기화합니다 유효성 검사에 쓰인 tm과 tn 값을 빈 문자열 값으로 초기화합니다. |
|---|
| 67 | {{{#!if tm="", tn="", ts=false, br=false, ps=false |
|---|
| 68 | }}} |
|---|
| 69 | |
|---|
| 70 | 입력한 소수점 아래에 입력한 값을 정리합니다. 이에 따라 ap, bp값도 다시 조정됩니다. |
|---|
| 71 | ○○○○○○○○○□□□□○○□□○ 과 같이 9칸, 4칸, 2칸, 2칸, 1칸씩 그 정도를 보정하게 됩니다. |
|---|
| 72 | {{{#!if (ap>9)&&(ab.substr(ap-9,9)=="000000000") |
|---|
| 73 | {{{#!if ab=ab.substr(0,ap-9), ap=ap-9 |
|---|
| 74 | }}}}}} |
|---|
| 75 | {{{#!if (ap>4)&&(ab.substr(ap-4,4)=="0000") |
|---|
| 76 | {{{#!if ab=ab.substr(0,ap-4), ap=ap-4 |
|---|
| 77 | }}}}}} |
|---|
| 78 | {{{#!if (ap>2)&&(ab.substr(ap-2,2)=="00") |
|---|
| 79 | {{{#!if ab=ab.substr(0,ap-2), ap=ap-2 |
|---|
| 80 | }}}}}} |
|---|
| 81 | {{{#!if (ap>2)&&(ab.substr(ap-2,2)=="00") |
|---|
| 82 | {{{#!if ab=ab.substr(0,ap-2), ap=ap-2 |
|---|
| 83 | }}}}}} |
|---|
| 84 | {{{#!if (ap>1)&&(ab.substr(ap-1,1)=="0") |
|---|
| 85 | {{{#!if ab=ab.substr(0,ap-1), ap=ap-1 |
|---|
| 86 | }}}}}} |
|---|
| 87 | {{{#!if (bp>9)&&(bb.substr(bp-9,9)=="000000000") |
|---|
| 88 | {{{#!if bb=bb.substr(0,bp-9), bp=bp-9 |
|---|
| 89 | }}}}}} |
|---|
| 90 | {{{#!if (bp>4)&&(bb.substr(bp-4,4)=="0000") |
|---|
| 91 | {{{#!if bb=bb.substr(0,bp-4), bp=bp-4 |
|---|
| 92 | }}}}}} |
|---|
| 93 | {{{#!if (bp>2)&&(bb.substr(bp-2,2)=="00") |
|---|
| 94 | {{{#!if bb=bb.substr(0,bp-2), bp=bp-2 |
|---|
| 95 | }}}}}} |
|---|
| 96 | {{{#!if (bp>2)&&(bb.substr(bp-2,2)=="00") |
|---|
| 97 | {{{#!if bb=bb.substr(0,bp-2), bp=bp-2 |
|---|
| 98 | }}}}}} |
|---|
| 99 | {{{#!if (bp>1)&&(bb.substr(bp-1,1)=="0") |
|---|
| 100 | {{{#!if bb=bb.substr(0,bp-1), bp=bp-1 |
|---|
| 101 | }}}}}} |
|---|
| 102 | |
|---|
| 103 | 그 다음 --앞자리에 0만 여러 개 적어놓고 장난치는 사람이 있을까봐-- au를 값으로 바꾼 다음 다시 문자열로 변환하여 앞자리에 있는 0들을 모두 삭제합니다. bu도 그렇게 둡니다. |
|---|
| 104 | {{{#!if au=+au, au=au.toString(), bu=+bu, bu=bu.toString() |
|---|
| 105 | }}} |
|---|
| 106 | |
|---|
| 107 | 이 상태의 au를 ma로 저장하고 ab가 빈 문자열이 아니라면 ab도 ma에 저장합니다. 같은 방법으로 bu, bb을 mb에 저장합니다. |
|---|
| 108 | {{{#!if ma=au, (ad!=-1)&&(ab!="") |
|---|
| 109 | a가 소수점 윗부분이 0이 되는 음수인 경우 "-0"으로 저장된 문자열은 정수값으로 바꿀 때 0이 되므로 ma앞에 -를 붙입니다. |
|---|
| 110 | {{{#!if ma+="."+ab, (+au==0)&&(as[0]==45) |
|---|
| 111 | {{{#!if ma="-"+ma |
|---|
| 112 | }}}}}}}}} |
|---|
| 113 | {{{#!if mb=bu, (bd!=-1)&&(bb!="") |
|---|
| 114 | {{{#!if mb+="."+bb, (+bu==0)&&(bs[0]==45) |
|---|
| 115 | {{{#!if mb="-"+mb |
|---|
| 116 | }}}}}}}}} |
|---|
| 117 | |
|---|
| 118 | ##== 덧셈, 뺄셈 == |
|---|
| 119 | 덧셈과 뺄셈 계산과정을 적어봅니다. |
|---|
| 120 | {{{#!if (f=="+")||(f=="-") |
|---|
| 121 | |
|---|
| 122 | a과 b의 소수점 윗부분은 정수이므로 쉽게 계산할 수 있습니다. |
|---|
| 123 | {{{#!if f=="+" |
|---|
| 124 | {{{#!if ru=(+au)+(+bu) |
|---|
| 125 | }}}}}} |
|---|
| 126 | {{{#!if f=="-" |
|---|
| 127 | {{{#!if ru=(+au)-(+bu) |
|---|
| 128 | }}}}}} |
|---|
| 129 | |
|---|
| 130 | a와 b 모두가 정수이면 ap==0, bp==0이 되며, 이런 경우에는 소수점 아래 자릿수를 검산할 필요가 없습니다. a와 b 중 소수점 아래 자릿수가 있는 수가 있을 때에만 소수점 윗자리의 계산값이 얼마가 나오느냐를 보면서 소수점 아래의 자릿수를 정리하는 과정이 의미가 있습니다. |
|---|
| 131 | {{{#!if (ap>0)||(bp>0) |
|---|
| 132 | 만약 소수점 아래를 계산한다면 자릿수를 똑같이 맞춰야 의미가 있으므로, 자릿수가 다른 경우 자릿수가 같게 만드는 과정을 먼저 거칩니다. 이를테면 a의 소수점 자릿수가 b의 소수점 자릿수보다 많으면 b뒤에 0을 더 추가하는 방식으로 변경합니다. b 자체가 정수여도 앞에 (소수점이 없을 경우) 이미 bb="", bp=0+0으로 초기화했으므로 동작될 것입니다. |
|---|
| 133 | 소수점 아래 최대 18자리까지의 수를 취급하므로 최대 18칸 차이가 나게 됩니다. |
|---|
| 134 | ap>bp에서 ap-bp>0이 됩니다. ap-bp는 곧 ap가 bp보다 몇 칸만큼 더 많은지를 나타냅니다. |
|---|
| 135 | {{{#!if ap>bp |
|---|
| 136 | {{{#!if bp=ap, bb+=pd |
|---|
| 137 | }}}{{{#!if bb=bb.substr(0,ap) |
|---|
| 138 | }}}}}} |
|---|
| 139 | |
|---|
| 140 | 반대로 b의 소수점 자릿수가 많은 경우도 있습니다. |
|---|
| 141 | {{{#!if bp>ap |
|---|
| 142 | {{{#!if ap=bp, ab=ab+pd |
|---|
| 143 | }}}{{{#!if ab=ab.substr(0,bp) |
|---|
| 144 | }}}}}} |
|---|
| 145 | |
|---|
| 146 | 위의 과정을 거치게 되면 소수점 아래 최대 자릿수를 똑같이 맞춘 상태에서 계산하게 되므로 ap==bp가 됩니다. |
|---|
| 147 | |
|---|
| 148 | a가 음수인 경우 소수점 아래 값은 순 숫자만 표기된 상태이므로 양수 취급으로 되지 않게 소수점 아래 값인 ab에 음수 표기를 남깁니다. |
|---|
| 149 | {{{#!if as[0]==45 |
|---|
| 150 | {{{#!if ab="-"+ab |
|---|
| 151 | }}}}}} |
|---|
| 152 | 마찬가지로 b가 음수인 경우 b의 소수점 아래 값은 음수이므로 소수점 아래 값인 bb에 음수 표기를 남깁니다. 10을 소수점 아래 자릿수만큼 제곱한 값으로 저장합니다. |
|---|
| 153 | {{{#!if bs[0]==45 |
|---|
| 154 | {{{#!if bb="-"+bb |
|---|
| 155 | }}}}}} |
|---|
| 156 | |
|---|
| 157 | 이때 rb를 계산합니다. |
|---|
| 158 | {{{#!if f=="+" |
|---|
| 159 | {{{#!if rb=(+ab)+(+bb) |
|---|
| 160 | }}}}}} |
|---|
| 161 | {{{#!if f=="-" |
|---|
| 162 | {{{#!if rb=(+ab)-(+bb) |
|---|
| 163 | }}}}}} |
|---|
| 164 | |
|---|
| 165 | 소수점 아래끼리 더한 자릿수가 얼마나 되는지 보기 위해 rb를 문자열로 바꿉니다. |
|---|
| 166 | 이 때 rb가 0이 아닐 경우에만 문자열로 변환합니다. |
|---|
| 167 | {{{#!if (+rb>0)||(+rb<0) |
|---|
| 168 | {{{#!if this.rb=rb.toString() |
|---|
| 169 | }}} |
|---|
| 170 | 문자열로 된 rb의 길이를 rp로 정의합니다. |
|---|
| 171 | {{{#!if this.rp=rb.length |
|---|
| 172 | }}} |
|---|
| 173 | }}} |
|---|
| 174 | |
|---|
| 175 | rb가 음수이면 rb의 첫번째(0번 index)의 문자열에는 마이너스(-)가 들어갑니다. 이 때는 rp를 rb의 마이너스 문자열을 세지 않은 자릿수가 되도록 앞에서 정의했던 rb.length에서 1만큼 줄여 정의합니다. ap, bp는 마이너스를 붙이기 전에 값이 고정되어 있으므로 rp처럼 줄일 필요가 없습니다. |
|---|
| 176 | {{{#!if rb[0]==45 |
|---|
| 177 | {{{#!if rp=rp-1 |
|---|
| 178 | }}}}}} |
|---|
| 179 | |
|---|
| 180 | ru값이 어떤지 보고 각 경우 rb값이 어떠한가에 따라 rb만 정리하거나 rb와 ru 모두 정리합니다. |
|---|
| 181 | 중복 처리를 막기 위해 초기화된 ps 변수 하나를 가져옵니다. |
|---|
| 182 | |
|---|
| 183 | 소수점 아래 값의 부호와 소수점 위의 값의 부호가 서로 다른 경우 계산을 하기 위해 값을 하나 정의합니다. |
|---|
| 184 | |
|---|
| 185 | {{{#!if tv=+(("1"+pd).substr(0,ap+1)) |
|---|
| 186 | }}} |
|---|
| 187 | |
|---|
| 188 | Case 1 : ru가 0보다 큰 경우 |
|---|
| 189 | ru는 정수이므로 ru가 0보다 크면 곧 ru는 1 이상의 정수이며, 1 이상이면 a+b 또는 a-b가 양수+음수 꼴이 되더라도 소수점 아래 정리를 하면 됩니다. rb를 정리하는 과정에서 ru에서 1을 빌려오거나 ru에 1이 더해질 수도 있습니다. 앞에서 rb를 string으로 바꿨으므로 +rb를 다룹니다. |
|---|
| 190 | {{{#!if ru>0 |
|---|
| 191 | Case 1-1 : rb가 0 이상인 경우 |
|---|
| 192 | {{{#!if (+rb>=0)&&!ps |
|---|
| 193 | rb가 소수점 아래 자릿수를 초과하여 소수점 위의 수를 계산하게 생겼다면 ap=bp인 상황에서 rp>ap가 됩니다. rb는 첫 숫자가 1인 정수가 되므로 첫 숫자인 1을 삭제한 문자열로 정의합니다. |
|---|
| 194 | {{{#!if rp>ap |
|---|
| 195 | {{{#!if ru=ru+1, rb=rb.substr(1, rp-1) |
|---|
| 196 | }}}}}} |
|---|
| 197 | rb가 소수점 아래 자릿수를 초과하지 않을 경우 rb를 다시 정의할 필요 없이 그대로 둡니다. |
|---|
| 198 | {{{#!if rp<=ap |
|---|
| 199 | }}} |
|---|
| 200 | {{{#!if ps=true |
|---|
| 201 | }}} |
|---|
| 202 | }}} |
|---|
| 203 | |
|---|
| 204 | Case 1-2 : rb가 음수인 경우 ru에서 1을 빌려옵니다. 1보다 작은 양수값에서 1보다 작은 양수값을 빼면 -1보다 작을 수 없으며, 소수점 아래 자릿수가 초과되지 않습니다. |
|---|
| 205 | {{{#!if (+rb<0)&&!ps |
|---|
| 206 | {{{#!if ru=ru-1 |
|---|
| 207 | }}} |
|---|
| 208 | 소수점 아래 자릿수인 ap만큼 10을 제곱한 값(tv)을 rb에서 증가시켜 rb를 재정의합니다. 그러면 rb는 양수가 됩니다. 그리고 rb를 다시 문자열로 변환합니다. |
|---|
| 209 | {{{#!if rb=tv+(+rb) |
|---|
| 210 | }}}{{{#!if rb=rb.toString() |
|---|
| 211 | }}} |
|---|
| 212 | {{{#!if ps=true |
|---|
| 213 | }}}}}} |
|---|
| 214 | 정리과정을 끝냈으면 ru를 string으로 변환합니다. |
|---|
| 215 | {{{#!if this.ru=ru.toString() |
|---|
| 216 | }}}}}} |
|---|
| 217 | |
|---|
| 218 | Case 2 : ru가 0인 경우 ru가 0이 되면 rb의 값이 양수인지 음수인지에 따라 달라집니다. |
|---|
| 219 | {{{#!if ru==0 |
|---|
| 220 | Case 2-1 : rb가 0 이상인 경우 |
|---|
| 221 | {{{#!if (+rb>=0)&&!ps |
|---|
| 222 | rb가 양수이면서 rb가 자릿수를 초과한 경우 rb는 첫 숫자가 1인 정수가 되므로 첫 숫자인 1을 삭제한 문자열로 정의합니다. |
|---|
| 223 | {{{#!if rp>ap |
|---|
| 224 | {{{#!if ru=ru+1, rb=rb.substr(1, rp-1) |
|---|
| 225 | }}}}}} |
|---|
| 226 | ru를 string으로 변환합니다. |
|---|
| 227 | {{{#!if ru=ru.toString() |
|---|
| 228 | }}} |
|---|
| 229 | {{{#!if ps=true |
|---|
| 230 | }}}}}} |
|---|
| 231 | Case 2-2 : rb가 음수인 경우 |
|---|
| 232 | {{{#!if (+rb<0)&&!ps |
|---|
| 233 | rb가 음수이면서 rb가 자릿수를 초과한 경우 값이 0인 ru에 1을 빼야 합니다. 그리고 rb가 "-"+숫자 꼴이므로 문자열의 1번 index에 해당하는 1을 지워야 합니다. 앞에서 rb가 음수인 경우 rp는 rb의 마이너스(-)가 차지하는 자릿수를 계산하지 않은 값 곧 숫자들이 차지하는 자릿수이므로, rb를 길이가 rp-1인 숫자들로 다시 정의합니다. |
|---|
| 234 | {{{#!if rp>ap |
|---|
| 235 | {{{#!if ru=ru-1, rb=rb.substr(2, rp-1) |
|---|
| 236 | }}}}}} |
|---|
| 237 | rb가 자릿수를 초과하지 않은 경우 rb에서 "-"를 뺀 문자열로 rb를 다시 정의합니다. |
|---|
| 238 | {{{#!if rp<=ap |
|---|
| 239 | {{{#!if rb=rb.substr(1, rp) |
|---|
| 240 | }}}}}} |
|---|
| 241 | ru를 string으로 변환합니다. |
|---|
| 242 | {{{#!if ru=ru.toString() |
|---|
| 243 | }}} |
|---|
| 244 | 만일 -0.xxxx 같이 여전히 rb<0이고 ru==0인 상태라면 rb에 생겼던 마이너스 부호를 떼어내 왼쪽으로 붙입니다. ns를 "-"으로 바꿉니다. |
|---|
| 245 | {{{#!if +ru==0 |
|---|
| 246 | {{{#!if ns="-" |
|---|
| 247 | }}}}}} |
|---|
| 248 | ru가 음수이면 ru앞에 음수 기호를 제거하고 ns에 "-"를 줍니다. |
|---|
| 249 | {{{#!if +ru<0 |
|---|
| 250 | {{{#!if ru=ru.substr(1), ns="-" |
|---|
| 251 | }}}}}} |
|---|
| 252 | {{{#!if ps=true |
|---|
| 253 | }}}}}} |
|---|
| 254 | }}} |
|---|
| 255 | |
|---|
| 256 | Case 3 : ru가 0보다 작은 경우. 곧 -1 이하인 음수가 되는 경우. |
|---|
| 257 | {{{#!if ru<0 |
|---|
| 258 | Case 3-1 : rb가 0 이하인 경우 |
|---|
| 259 | {{{#!if (+rb<=0)&&!ps |
|---|
| 260 | rb가 음수이면서 자릿수를 초과한 경우 ru에 -1을 빼고, rb의 음수기호(-)와 첫번째 숫자인 문자열 "1"을 뺀 문자열로 rb를 다시 정의합니다. |
|---|
| 261 | {{{#!if rp>ap |
|---|
| 262 | {{{#!if rb=rb.substr(2, rp-1) |
|---|
| 263 | }}} |
|---|
| 264 | }}} |
|---|
| 265 | rb가 자릿수를 초과하지 않은 경우 rp는 음수기호를 제외한 숫자 자릿수이므로 rb를 음수기호만을 뺀 문자열로 다시 정의합니다. 단, rb가 0이 되면 rp==1이 되므로 rb==0인 경우는 제외합니다. |
|---|
| 266 | {{{#!if (rp<=ap)&&(+rb<0) |
|---|
| 267 | {{{#!if rb=rb.substr(1, rp) |
|---|
| 268 | }}}}}}{{{#!if ps=true |
|---|
| 269 | }}}}}} |
|---|
| 270 | Case 3-2 : rb가 0보다 큰 경우. 소수점 아래 부분을 보면 -1보다 큰 음수값에서 -1보다 큰 음수값을 빼면 1보다 클 수 없으며, 소수점 아래 자릿수가 초과되지 않습니다. |
|---|
| 271 | {{{#!if (+rb>0)&&!ps |
|---|
| 272 | ru<=-1이므로 ru+1를 해도 최대 0이 됩니다. |
|---|
| 273 | {{{#!if ru=ru+1 |
|---|
| 274 | }}} |
|---|
| 275 | rb>0에서 rb은 음수(계산결과)의 음수(마이너스값이 줄어듦)이므로 rb의 자릿수인 rp만큼 10을 제곱한 값(tv)에서 rb을 '''뺀''' 값으로 rb를 재정의합니다. 그러면 rb는 양수이지만 계산결과인 음수에 맞춘 값이 됩니다. 그리고 rb를 다시 문자열로 변환합니다. 변환합니다. |
|---|
| 276 | {{{#!if rb=tv-(+rb) |
|---|
| 277 | }}}{{{#!if rb=rb.toString() |
|---|
| 278 | }}}{{{#!if ps=true |
|---|
| 279 | }}}}}} |
|---|
| 280 | 정리과정을 끝냈으면 ru를 string으로 변환합니다. |
|---|
| 281 | {{{#!if this.ru=ru.toString() |
|---|
| 282 | }}} |
|---|
| 283 | -0.xxxx 같이 (ru==0인데) 연산결과가 -1보다 큰 음수로 나오는 경우가 있으므로 ru 앞에 음수 기호를 제거하고 ns에 "-"를 줍니다. |
|---|
| 284 | {{{#!if +ru<0 |
|---|
| 285 | {{{#!if ru=ru.substr(1), ns="-" |
|---|
| 286 | }}}}}} |
|---|
| 287 | {{{#!if +ru==0 |
|---|
| 288 | {{{#!if ns="-" |
|---|
| 289 | }}}}}} |
|---|
| 290 | }}} |
|---|
| 291 | 여기까지가 소수점 아래 자릿수 숫자들의 계산과정입니다. |
|---|
| 292 | }}} |
|---|
| 293 | |
|---|
| 294 | a와 b 모두 정수인 경우 ap, bp는 모두 0이 되므로 ru만을 그대로 문자열로 바꾸면 되며 소수점 아래(rb)는 표기해야 할 필요가 없으므로 rb="", (소수점 아래 자릿수)rp=0을 반환합니다. |
|---|
| 295 | {{{#!if (ap==0)&&(bp==0) |
|---|
| 296 | {{{#!if this.ru=ru.toString(), rb="", rp=0+0 |
|---|
| 297 | }}}}}} |
|---|
| 298 | |
|---|
| 299 | rb==0인 경우 rb="", rp=0을 반환합니다. |
|---|
| 300 | {{{#!if +rb==0 |
|---|
| 301 | {{{#!if rb="", rp=0+0 |
|---|
| 302 | }}}}}} |
|---|
| 303 | |
|---|
| 304 | 이제 rb=""이 아닌 경우 소수점 아래 숫자 정리를 합니다. |
|---|
| 305 | rp를 rb의 문자열 길이로 다시 정의합니다. |
|---|
| 306 | {{{#!if rb!="" |
|---|
| 307 | {{{#!if this.rp=rb.length |
|---|
| 308 | }}} |
|---|
| 309 | |
|---|
| 310 | +"000100"을 숫자로 바꾸면 100이 되는 문제가 있습니다. 이처럼 소수점 아래 자릿수를 연산한 결과를 문자열로 바꿨을 때 기존 소수점 아래 자릿수보다 작은 길이가 나오면 앞쪽에 0을 보충합니다. |
|---|
| 311 | 앞에서 ap,bp를 똑같이 맞췄으므로 ap를 가져옵니다. 자릿수가 모자랄 경우 0을 하나씩 보충합니다. |
|---|
| 312 | {{{#!if rp<ap |
|---|
| 313 | {{{#!if rb=pd.substr(0,ap-rp)+rb |
|---|
| 314 | }}}}}} |
|---|
| 315 | |
|---|
| 316 | 앞에 0을 채웠다면 이제, 소수점 아래로 나오는 숫자를 보고 마지막에서부터 0이 나오면 한 자리씩 지우는 과정을 시작합니다. |
|---|
| 317 | |
|---|
| 318 | 여기까지가 덧셈 또는 뺄셈연산의 계산과정이며 과정은 이후 rb 정리 과정으로 넘어갑니다. |
|---|
| 319 | }}}}}} |
|---|
| 320 | |
|---|
| 321 | ##== 곱셈 & 나눗셈 == |
|---|
| 322 | ##=== 숫자 초기화 === |
|---|
| 323 | {{{#!if (f=="*")||(f=="/") |
|---|
| 324 | 곱셈 및 나눗셈 연산과정을 봅니다. |
|---|
| 325 | 18자리 숫자로 입력할 수 있는 최대 정수는 999,999,999,999,999,999입니다. |
|---|
| 326 | 다행히 999,999,999,999,999,999*9=8,999,999,999,999,999,991 < long 한계치 9,223,372,036,854,775,807 이라서 a*각 자릿수로 덧셈해볼 수는 있습니다. |
|---|
| 327 | |
|---|
| 328 | a 또는 b가 음수가 될 경우 as 또는 bs 문자열은 "-" 기호가 붙으므로, 이것을 이용한 조건문을 하나 만들어 a와 b 둘의 부호가 서로 다를 경우 (a만 음수이거나 b가 음수일 경우) 계산 결과에 부호를 표시할 수 있게 만듭니다. |
|---|
| 329 | {{{#!if (as[0]==45)^(bs[0]==45) |
|---|
| 330 | {{{#!if ns="-" |
|---|
| 331 | }}}}}} |
|---|
| 332 | a 또는 b가 음수가 될 경우 소수점 윗부분 문자열인 au 또는 bu에서 마이너스(-)를 제거합니다. |
|---|
| 333 | {{{#!if au[0]==45 |
|---|
| 334 | {{{#!if au=au.substr(1,ad-1) |
|---|
| 335 | }}}}}} |
|---|
| 336 | {{{#!if bu[0]==45 |
|---|
| 337 | {{{#!if bu=bu.substr(1,bd-1) |
|---|
| 338 | }}}}}} |
|---|
| 339 | |
|---|
| 340 | ##=== 자릿수 측정 === |
|---|
| 341 | 나누는 자릿수에 맞춰 결과를 표시하고자 ac, bc를 자릿수를 나타내는 값으로 정의합니다. |
|---|
| 342 | 먼저 au는 앞에 적어놓은 0을 제거한 문자열이므로 +au>0인 경우 ac를 au의 문자열 길이에서 1을 뺀 값으로 정의합니다. |
|---|
| 343 | {{{#!if +au>0 |
|---|
| 344 | {{{#!if ac=au.length-1 |
|---|
| 345 | }}}}}} |
|---|
| 346 | (au, ab 둘다 0인 경우 앞에 처리하는 식이 있고, au, ab 둘 중 하나라도 0이 아닐 때) au가 0이라면 ab는 단순 정수값으로 옮겼을 때 0보다 큰 값이 나옵니다. 소수점 아래 처음으로 0이 아닌 수가 나오는 자릿수를 구한 다음 덧셈 연산에서 그 수의 역원이 되는 수를 ac로 정의합니다. 이를 구하고자 ab의 뒤에 0을 더 붙여 18자리 숫자로 만든 다음 정수로 바꾸어 구합니다. |
|---|
| 347 | {{{#!if +au==0 |
|---|
| 348 | {{{#!if ac=ab+pd, ac=ac.substr(0,18), ac=+ac, ac=ac.toString(), ac=ac.length-19 |
|---|
| 349 | }}}}}} |
|---|
| 350 | |
|---|
| 351 | bc도 a와 같은 방법으로 정의합니다. |
|---|
| 352 | {{{#!if +bu>0 |
|---|
| 353 | {{{#!if bc=bu.length-1 |
|---|
| 354 | }}}}}}{{{#!if +bu==0 |
|---|
| 355 | {{{#!if bc=bb+pd, bc=bc.substr(0,18), bc=+bc, bc=bc.toString(), bc=bc.length-19 |
|---|
| 356 | }}}}}} |
|---|
| 357 | |
|---|
| 358 | ##=== 0인자 처리 === |
|---|
| 359 | a 또는 b값이 0이 되려면 au, ab 둘 다 0이 되거나 bu, bb 둘 다 0이 되어야 합니다. a 또는 b 값이 0일 경우 당연히 음수 부호가 표시되지 않습니다. |
|---|
| 360 | {{{#!if ((+au==0)&&(+ab==0))||((+bu==0)&&(+bb==0)) |
|---|
| 361 | 곱셈에서 0을 곱하면 0이 되므로, 곱셈의 경우 a 또는 b가 0이 될 때 계산 결과에 0을 반환합니다. |
|---|
| 362 | {{{#!if f=="*" |
|---|
| 363 | {{{#!if rs="", ru="0", rb="", ri="", rp=0, ns="" |
|---|
| 364 | }}}}}} |
|---|
| 365 | 나눗셈에서 나누는 수(b)가 0이 될 경우 오류를 반환하고 ps=true를 걸어 나눗셈 연산이 되지 않게 만듭니다. |
|---|
| 366 | {{{#!if f=="/" |
|---|
| 367 | {{{#!if ((+bu==0)&&(+bb==0)) |
|---|
| 368 | error code 03 번 : 0으로 나눌 수 없습니다. |
|---|
| 369 | {{{#!if eb=03, ps=true |
|---|
| 370 | }}}}}} |
|---|
| 371 | 나누는 수가 0이 아니면서 나눌 대상이 0이 될 경우 곱셈에서 0을 곱하는 것처럼 계산 결과에 0을 반환합니다. |
|---|
| 372 | {{{#!if ((+au==0)&&(+ab==0))&&((+bu!=0)||(+bb!=0)) |
|---|
| 373 | {{{#!if rs="", ru="0", rb="", ri="", rp=0, ns="" |
|---|
| 374 | }}}}}} |
|---|
| 375 | }}}}}} |
|---|
| 376 | 곱셈과 나눗셈에서 a와 b 모두 0이 아닌 경우를 봅니다. |
|---|
| 377 | {{{#!if ((+au!=0)||(+ab!=0))&&((+bu!=0)||(+bb!=0)) |
|---|
| 378 | |
|---|
| 379 | ##=== 3차 초기화 === |
|---|
| 380 | {{{#!if f=="*" |
|---|
| 381 | 곱셈계산에서 18자리씩 곱셈을 할 수 있도록 입력했던 a와 b의 문자열을 확장할 것입니다. |
|---|
| 382 | |
|---|
| 383 | a와 b 각각 소수점 윗자리와 소수점 아래자리의 문자열의 빈 공간을 0으로 채워 18자로 만듭니다. |
|---|
| 384 | 소수점 윗자리는 왼쪽에서 0을 채워나갑니다. |
|---|
| 385 | {{{#!if au = pd + au |
|---|
| 386 | +18자}}}{{{#!if au=au.substr(au.length-18,18) |
|---|
| 387 | }}} |
|---|
| 388 | {{{#!if bu = pd + bu |
|---|
| 389 | +18자}}}{{{#!if bu=bu.substr(bu.length-18,18) |
|---|
| 390 | }}} |
|---|
| 391 | |
|---|
| 392 | 소수점 아래자리는 오른쪽에서 0을 채웁니다. (ap, bp값은 보존됩니다.) |
|---|
| 393 | {{{#!if ab += pd |
|---|
| 394 | +18자}}}{{{#!if ab=ab.substr(0,18) |
|---|
| 395 | }}} |
|---|
| 396 | {{{#!if bb += pd |
|---|
| 397 | +18자}}}{{{#!if bb=bb.substr(0,18) |
|---|
| 398 | }}}}}} |
|---|
| 399 | |
|---|
| 400 | {{{#!if f=="/" |
|---|
| 401 | 나눗셈은 소수점 위 18번째 자리부터 내려가면서 처음으로 0이 아닌 숫자가 있으면 그 숫자가 처음 숫자가 되도록 숫자를 왼쪽으로 밀어두려고 합니다. 그 다음 오른쪽을 0으로 채웁니다. |
|---|
| 402 | |
|---|
| 403 | a에서 au가 0인 경우 18자리 au를 18자리 ab로 바꾸고 ab를 18자의 0(pd)으로 채웁니다. |
|---|
| 404 | 소수점 아래 자리를 매겼던 ab가 소수점 위인 au자리로 옮겨지게 되므로 정수로 바꾸었다 다시 문자열로 바꿈으로써 왼쪽에 불필요하게 붙어있는 0을 삭제합니다. |
|---|
| 405 | {{{#!if +au==0 |
|---|
| 406 | {{{#!if au=ab, ab=pd, au=+au, au=au.toString() |
|---|
| 407 | }}}}}} |
|---|
| 408 | |
|---|
| 409 | au를 왼쪽으로 밀 경우 남게 되는 자릿수를 변수 tu로 둡니다. (후술할 아래 곱셈연산과 겹치지 않습니다.) |
|---|
| 410 | {{{#!if tu=18-au.length, au=au+ab.substr(0,tu)+pd, ab=ab.substr(tu)+pd, au=au.substr(0,18), ab=ab.substr(0,18) |
|---|
| 411 | }}} |
|---|
| 412 | |
|---|
| 413 | b도 a와 같은 방법으로 초기화합니다. |
|---|
| 414 | {{{#!if +bu==0 |
|---|
| 415 | {{{#!if bu=bb, bb=pd, bu=+bu, bu=bu.toString() |
|---|
| 416 | }}}}}} |
|---|
| 417 | {{{#!if tu=18-bu.length, bu=bu+bb.substr(0,tu)+pd, bb=bb.substr(tu)+pd, bu=bu.substr(0,18), bb=bb.substr(0,18) |
|---|
| 418 | }}} |
|---|
| 419 | |
|---|
| 420 | }}} |
|---|
| 421 | }}} |
|---|
| 422 | 여기까지 곱셈 또는 나눗셈에서 숫자를 초기화하는 과정입니다. |
|---|
| 423 | }}} |
|---|
| 424 | |
|---|
| 425 | ##=== 곱셈 === |
|---|
| 426 | a와 b 모두 0이 아닌 경우에서 곱셈을 연산하는 과정입니다. |
|---|
| 427 | {{{#!if (f=="*")&&((+au!=0)||(+ab!=0))&&((+bu!=0)||(+bb!=0)) |
|---|
| 428 | 곱셈은 18자리를 끊어서 계산합니다. 소수점 아래 18자리의 아래인 제19~36번 자리를 ri로 둡니다. 소수점 위 19~36번째 자리는 rs로 두어 ri, rb, ru, rs 순으로 계산합니다. |
|---|
| 429 | 소수점 위 18자리, 소수점 아래 18자리인 두 수를 곱하면 해당하는 자리별로 곱셈을 할 때 최대 (18+18)**2=1296회를 곱해야 합니다. |
|---|
| 430 | |
|---|
| 431 | 앞으로 있을 계산은 다음과 같습니다. |
|---|
| 432 | * ri를 더했더니 ri가 19자리 숫자로 넘치면 넘친 앞의 1자리를 rb로 넘깁니다. |
|---|
| 433 | * rb가 19자리로 넘쳤다면 넘친 앞의 1자리를 ru로 넘깁니다. |
|---|
| 434 | * ru가 19자리로 넘친다면 넘친 앞의 1자리를 rs로 넘깁니다. |
|---|
| 435 | (rs는 상용로그로 보았을 때 log a<18, log b<18 에서 log (a*b) = log a + log b < 36이므로 19자리로 넘치지 않습니다.) |
|---|
| 436 | 문자열로 바꾸고 문자열을 쪼갠 다음 숫자로 바꾸는 과정입니다. 이를 if로 바꾸면 다음과 같습니다. |
|---|
| 437 | {{{#!if false |
|---|
| 438 | {{{#!if ri=ri.toString(), ri.length==19 |
|---|
| 439 | {{{#!if rb=(+rb)+(+ri.substr(0,1)), ri=(+ri.substr(1,18)) |
|---|
| 440 | }}}}}} |
|---|
| 441 | {{{#!if rb=rb.toString(), rb.length==19 |
|---|
| 442 | {{{#!if ru=(+ru)+(+rb.substr(0,1)), rb=(+rb.substr(1,18)) |
|---|
| 443 | }}}}}} |
|---|
| 444 | {{{#!if ru=ru.toString(), ru.length==19 |
|---|
| 445 | {{{#!if rs=(+rs)+(+ru.substr(0,1)), ru=(+ru.substr(1,18)) |
|---|
| 446 | }}}}}} |
|---|
| 447 | }}} |
|---|
| 448 | 변수 tv, tw, i, ps를 가져옵니다. tw는 0, tv는 1, i는 0, ps는 false으로 초기화 된 채로 있습니다. 연산 과정 중간중간에 마지막 자릿수를 보정하고자 10씩 곱하게 됩니다. ri에서 최대 18자리에서 1자리 수를 곱하면 19자리가 될 수 있으므로 곱셈할 때마다 19자리로 넘칠때마다 넘치는 숫자는 rb로 넘깁니다. |
|---|
| 449 | ri부분을 합산합니다. ab*bb 의 절반을 처리합니다. (자릿수끼리 대입했을 때 처리되는 부분이 먼저 입력한 절반이 나중에 입력하는 절반보다 더 많지만, 편의상 절반이라고 적습니다.) |
|---|
| 450 | ## for i=0 to 17 |
|---|
| 451 | {{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 452 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 453 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 454 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 455 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 456 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 457 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 458 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 459 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 460 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 461 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 462 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 463 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 464 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 465 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 466 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 467 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 468 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bb.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), rb=ps?rb+(+tw.substr(0,1)):rb, ri=ps?ri+(+tw.substr(1)):ri+(+tw), ri=ri.toString(), ps=(ri.length==19), rb=ps?rb+(+ri.substr(0,1)):rb, ri=ps?(+ri.substr(1)):(+ri), i+=1, tv*=10 |
|---|
| 469 | }}} |
|---|
| 470 | |
|---|
| 471 | ##rb |
|---|
| 472 | rb부분을 합산합니다. substr(-1,0)은 빈 문자열 값이 나옵니다. (ab*bb의 나머지 절반 + au*bb의 절반), ab*bu의 절반을 처리합니다. i, tv, ps를 다시 초기화하고 시작합니다. |
|---|
| 473 | {{{#!if i=0+0, tv=1 |
|---|
| 474 | }}} |
|---|
| 475 | ##for i=0 to 17 |
|---|
| 476 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 477 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 478 | }}} |
|---|
| 479 | ## i=1 |
|---|
| 480 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 481 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 482 | }}} |
|---|
| 483 | ## i=2 |
|---|
| 484 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 485 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 486 | }}} |
|---|
| 487 | ## i=3 |
|---|
| 488 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 489 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 490 | }}} |
|---|
| 491 | ## i=4 |
|---|
| 492 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 493 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 494 | }}} |
|---|
| 495 | ## i=5 |
|---|
| 496 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 497 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 498 | }}} |
|---|
| 499 | ## i=6 |
|---|
| 500 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 501 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 502 | }}} |
|---|
| 503 | ## i=7 |
|---|
| 504 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 505 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 506 | }}} |
|---|
| 507 | ## i=8 |
|---|
| 508 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 509 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 510 | }}} |
|---|
| 511 | ## i=9 |
|---|
| 512 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 513 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 514 | }}} |
|---|
| 515 | ## i=10 |
|---|
| 516 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 517 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 518 | }}} |
|---|
| 519 | ## i=11 |
|---|
| 520 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 521 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 522 | }}} |
|---|
| 523 | ## i=12 |
|---|
| 524 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 525 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 526 | }}} |
|---|
| 527 | ## i=13 |
|---|
| 528 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 529 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 530 | }}} |
|---|
| 531 | ## i=14 |
|---|
| 532 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 533 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 534 | }}} |
|---|
| 535 | ## i=15 |
|---|
| 536 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 537 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 538 | }}} |
|---|
| 539 | ## i=16 |
|---|
| 540 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 541 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 542 | }}} |
|---|
| 543 | ## i=17 |
|---|
| 544 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bb.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb) |
|---|
| 545 | }}}{{{#!if tw=(+ab.substr(i,18-i))*(+bu.substr(17-i,1))*tv, tw=tw.toString(), ps=(tw.length==19), ru=ps?ru+(+tw.substr(0,1)):ru, rb=ps?rb+(+tw.substr(1)):rb+(+tw), rb=rb.toString(), ps=(rb.length==19), ru=ps?ru+(+rb.substr(0,1)):ru, rb=ps?(+rb.substr(1)):(+rb), i+=1, tv*=10 |
|---|
| 546 | }}} |
|---|
| 547 | |
|---|
| 548 | ##ru |
|---|
| 549 | ru부분을 합산합니다. substr(-1,0)은 빈 문자열 값이 나옵니다. (ab*bu의 나머지 절반 + au*bu의 절반), au*bb의 나머지 절반을 처리합니다. i, tv, ps를 다시 초기화하고 시작합니다. |
|---|
| 550 | {{{#!if i=0+0, tv=1 |
|---|
| 551 | }}} |
|---|
| 552 | ##for i=0 to 17 |
|---|
| 553 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 554 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 555 | }}} |
|---|
| 556 | ## i=1 |
|---|
| 557 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 558 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 559 | }}} |
|---|
| 560 | ## i=2 |
|---|
| 561 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 562 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 563 | }}} |
|---|
| 564 | ## i=3 |
|---|
| 565 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 566 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 567 | }}} |
|---|
| 568 | ## i=4 |
|---|
| 569 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 570 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 571 | }}} |
|---|
| 572 | ## i=5 |
|---|
| 573 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 574 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 575 | }}} |
|---|
| 576 | ## i=6 |
|---|
| 577 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 578 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 579 | }}} |
|---|
| 580 | ## i=7 |
|---|
| 581 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 582 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 583 | }}} |
|---|
| 584 | ## i=8 |
|---|
| 585 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 586 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 587 | }}} |
|---|
| 588 | ## i=9 |
|---|
| 589 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 590 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 591 | }}} |
|---|
| 592 | ## i=10 |
|---|
| 593 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 594 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 595 | }}} |
|---|
| 596 | ## i=11 |
|---|
| 597 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 598 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 599 | }}} |
|---|
| 600 | ## i=12 |
|---|
| 601 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 602 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 603 | }}} |
|---|
| 604 | ## i=13 |
|---|
| 605 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 606 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 607 | }}} |
|---|
| 608 | ## i=14 |
|---|
| 609 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 610 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 611 | }}} |
|---|
| 612 | ## i=15 |
|---|
| 613 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 614 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 615 | }}} |
|---|
| 616 | ## i=16 |
|---|
| 617 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 618 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 619 | }}} |
|---|
| 620 | ## i=17 |
|---|
| 621 | {{{#!if tw=+(au.substr(i,18-i)+ab.substr(0,i)), tw=tw*(+bu.substr(17-i,1)), tw=tw.toString(), ps=(tw.length==19), rs=ps?rs+(+tw.substr(0,1)):rs, ru=ps?ru+(+tw.substr(1)):ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru) |
|---|
| 622 | }}}{{{#!if tw=(+au.substr(0,i))*(+bb.substr(17-i,1)), ru=ru+(+tw), ru=ru.toString(), ps=(ru.length==19), rs=ps?rs+(+ru.substr(0,1)):rs, ru=ps?(+ru.substr(1)):(+ru), i+=1, tv*=10 |
|---|
| 623 | }}} |
|---|
| 624 | |
|---|
| 625 | ##rs |
|---|
| 626 | rs부분을 합산합니다. au*bu의 나머지 절반을 처리합니다. i, tv, ps를 다시 초기화하고 시작합니다. 소수점 윗자리는 많아야 36자리이므로 rs에서 더 이상 넘치지 않습니다. |
|---|
| 627 | {{{#!if i=0+0, tv=1, ps=false |
|---|
| 628 | }}} |
|---|
| 629 | ##for i=0 to 17 |
|---|
| 630 | {{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 631 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 632 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 633 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 634 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 635 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 636 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 637 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 638 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 639 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 640 | }}} |
|---|
| 641 | {{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 642 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 643 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 644 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 645 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 646 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 647 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 648 | }}}{{{#!if tw=(+au.substr(0,i))*(+bu.substr(17-i,1)), rs=rs+tw, i+=1 |
|---|
| 649 | }}} |
|---|
| 650 | 여기까지가 곱셈에서 a*b 의 연산 과정이며 rb 정리 부분으로 넘어갑니다. |
|---|
| 651 | }}} |
|---|
| 652 | |
|---|
| 653 | ##=== 나눗셈 === |
|---|
| 654 | a와 b 모두 0이 아닌 경우에서 나눗셈을 연산하는 과정입니다. |
|---|
| 655 | {{{#!if (f=="/")&&((+au!=0)||(+ab!=0))&&((+bu!=0)||(+bb!=0)) |
|---|
| 656 | |
|---|
| 657 | au, ab, bu, bb를 18자로 만들었으므로 36자리 정수의 나눗셈으로 봅니다. |
|---|
| 658 | a/b=(au+ab)/(bu+bb)=(+(au.substr(0,18)+ab.substr(0,18)))/(+(bu.substr(0,18)+bb.substr(0,18)))와 같습니다. |
|---|
| 659 | |
|---|
| 660 | ##몫 서술 |
|---|
| 661 | 제일 높은 자리부터 내려오면서 처음으로 0이 아닌 수를 왼쪽으로 당기는 과정을 거쳤으므로 (1부터 시작하는 18자리+18자리 숫자)/(1부터 시작하는 18자리+18자리 수) 연산이 됩니다. |
|---|
| 662 | |
|---|
| 663 | {{{#!if ps=false |
|---|
| 664 | }}}ps를 false로 초기화합니다. 변수에 값을 주는 여부로 ps를 사용합니다. |
|---|
| 665 | |
|---|
| 666 | ##i=0 |
|---|
| 667 | {{{#!if br=false |
|---|
| 668 | }}}다시 정렬된 bu, bb의 값은 바뀌지 않습니다. bu, bb로 나눈 몫만큼 au, ab에서 감소시킨 다음 au와 ab를 다시 정렬시키며, au와 ab가 모두 0이 되면 더 이상 계산하지 않도록 br를 true로 반환합니다. |
|---|
| 669 | 그 다음 계산을 편하게 할 수 있도록 텍스트값으로 된 au, ab, bu, bb를 정수값으로 변환합니다. |
|---|
| 670 | {{{#!if au=+au, ab=+ab, bu=+bu, bb=+bb |
|---|
| 671 | }}} |
|---|
| 672 | |
|---|
| 673 | 먼저 au를 bu로 나눈 몫을 tw로 정의합니다. 정수를 정수로 나누면 몫만 계산되며, 100,000,000,000,000,000 이상 999,999,999 999,999,999 이하의 한 정수를 100,000,000,000,000,000 이상의 다른 한 정수로 나눈 몫이므로 tw의 값은 최소 0 최대 9가 됩니다. |
|---|
| 674 | {{{#!if tw=au/bu |
|---|
| 675 | }}} |
|---|
| 676 | bu, bb를 각각 tw만큼 곱한 값을 tx, ty로 정의합니다. |
|---|
| 677 | {{{#!if tx=bu*tw, ty=bb*tw |
|---|
| 678 | }}} |
|---|
| 679 | 이 때 ty가 19자리가 되면 넘친 첫번째 자리의 값을 tx의 일의 자리로 더하고 아래 18자리의 값을 ty로 다시 정의합니다. tx는 19자리 숫자가 되어도 문제가 없습니다. 만일 ty가 19자리가 되지 않는다면 tx와 ty를 그대로 둡니다. 그 다음 ty를 정수로 바꿉니다. |
|---|
| 680 | {{{#!if ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 681 | }}} |
|---|
| 682 | 이렇게 하면 tx=bu*tw<=au가 됩니다. (bu가 au보다 크면 tw는 tw의 정의에서 값이 0이 되므로 부등호가 성립됩니다.) |
|---|
| 683 | |
|---|
| 684 | (2.1/1.6 처럼) ty가 넘쳐 tx 값이 더해지는 경우가 있으므로 몫이 유효한 값인지 검산합니다. 만일 tx ty 가 기존 au ab을 넘게 되면 tw에서 1을 빼고, tx, ty를 다시 정의합니다. 그러나 tw가 이미 0이 되었을 경우 tw를 0으로 둡니다. |
|---|
| 685 | {{{#!if (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 686 | {{{#!if tw=(tw==0)?0:tw-1, tx=bu*tw, ty=bb*tw |
|---|
| 687 | }}} |
|---|
| 688 | 마찬가지로 ty가 19자리가 된다면 넘친 첫번째 자리의 값을 tx의 일의 자리로 더합니다. 그 다음 ty를 정수로 바꿉니다. |
|---|
| 689 | {{{#!if ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 690 | }}} |
|---|
| 691 | }}} |
|---|
| 692 | 이렇게 만들어진 tx, ty가 있으면 이를 반영합니다. |
|---|
| 693 | au에서 tx를, ab에서 ty를 뺍니다. 만약 ty>ab일 경우 au에서 1을 가져와 (au에서 1을 빼고) ab에 1,000,000,000,000,000,000을 더한 다음 계산합니다. |
|---|
| 694 | {{{#!if ty>ab |
|---|
| 695 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 696 | }}}}}} |
|---|
| 697 | {{{#!if au-=tx, ab-=ty |
|---|
| 698 | }}} |
|---|
| 699 | 몫인 tw를 문자열로 바꾸고 tm의 오른쪽에 더합니다. |
|---|
| 700 | {{{#!if tw=tw.toString(), tm+=tw |
|---|
| 701 | }}} |
|---|
| 702 | au, ab에서 몫을 빼고 나니 au, ab가 모두 0으로 된다면 더 이상 계산을 하지 않아야 하므로 br를 true로 반환합니다. |
|---|
| 703 | {{{#!if (au==0)&&(ab==0) |
|---|
| 704 | {{{#!if br=true |
|---|
| 705 | }}}}}} |
|---|
| 706 | 어느 하나가 0이 되지 않는다면 br는 여전히 false이므로 !br일 때 자릿수를 옮깁니다. |
|---|
| 707 | {{{#!if !br |
|---|
| 708 | au, ab를 문자열로 다시 바꿉니다. |
|---|
| 709 | {{{#!if au=au.toString(), ab=ab.toString() |
|---|
| 710 | }}} |
|---|
| 711 | au가 여전히 18자리 숫자일 경우 au의 첫번째 자리를 분리해 내어 tn으로 정의하고 나머지 17자리를 au로 둡니다. 그렇지 않을 경우 (au가 17자리 미만의 숫자가 되었다면) tn은 빈 문자열으로 두고 au의 왼쪽을 0(pd)으로 채운 다음 (적어도 19자리가 되는 문자열을) 뒤에서 17번째 자리부터 가지고 와 au로 만듭니다. |
|---|
| 712 | {{{#!if ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17) |
|---|
| 713 | }}} |
|---|
| 714 | ab가 18자리 미만의 숫자가 되었다면 왼쪽을 0으로 채워 18자리 숫자로 만듭니다. |
|---|
| 715 | {{{#!if ab=(ab.length<18)?(pd+ab).substr(-18):ab |
|---|
| 716 | }}} |
|---|
| 717 | au의 뒤로 ab의 처음 자리를 끌어옵니다. |
|---|
| 718 | {{{#!if au+=ab.substr(0,1) |
|---|
| 719 | }}} |
|---|
| 720 | ab의 나머지 17자리를 앞으로 당긴 다음 "0"을 더합니다. |
|---|
| 721 | {{{#!if ab=ab.substr(1)+"0" |
|---|
| 722 | }}} |
|---|
| 723 | 여기까지가 자릿수를 한 칸씩 옮기는 과정입니다. |
|---|
| 724 | }}} |
|---|
| 725 | ##i=1 part 1 |
|---|
| 726 | 몫으로 기록할 숫자의 첫번째 자리를 구했다면, 그 다음 자리의 숫자를 찾기 위해 (변수 tn으로 만들 수 있는 여분의 1자리 +) 18자리 + 18자리 숫자를 18자리+18자리 숫자로 나누는 계산을 합니다. tn이 9가 될 경우 9로 시작하는 19자리 숫자를 long integer로 모두 표현할 수 없으므로 10**18 자리부터 먼저 계산합니다. 10**18의 1번째 숫자의 몫을 구한 다음 나머지를 18자리 숫자에 더하는 과정(part 1)을 거친 다음 그 18자리에서 몫을 구하는 과정(part 2)을 거칩니다. |
|---|
| 727 | |
|---|
| 728 | au와 ab를 정수로 다시 바꾸고 tz를 0으로 초기화합니다. 그리고 tn이 빈 문자열이 아니라면 (앞에 au에서 한 자리 수를 떼온 것이므로) tn에 0을 더하여 19자리로 만들고 몫을 구합니다. |
|---|
| 729 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 730 | tn을 19자리 정수로 바꿉니다. |
|---|
| 731 | {{{#!if tn+=pd, tn=+tn |
|---|
| 732 | }}} |
|---|
| 733 | tz를 몫으로 정의합니다. 앞의 tw를 처리하는 방법과 같습니다. tn을 정수로 만들었으므로 소수점 아래를 비교한다면 정수의 소수점 아래에 해당하는 0과 비교합니다. |
|---|
| 734 | {{{#!if tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString() |
|---|
| 735 | }}} |
|---|
| 736 | 마찬가지로 ty가 19자리 숫자이면 1자리를 떼어 tx에 더합니다. |
|---|
| 737 | {{{#!if ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 738 | }}} |
|---|
| 739 | 앞의 tw를 처리할 때 au와 tx를 비교한 것처럼 tz를 처리할 때 tn와 tx를 비교합니다. |
|---|
| 740 | {{{#!if (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 741 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz |
|---|
| 742 | }}}{{{#!if ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 743 | }}}}}} |
|---|
| 744 | tn에서 나누어떨어지는 값을 뺀 나머지를 반영하여 au, ab에 더합니다. 소수점 아래 부분인 ab보다 ty가 크다면 tn에서 1을 빼어 계산합니다. |
|---|
| 745 | {{{#!if ty>ab |
|---|
| 746 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 747 | }}}}}} |
|---|
| 748 | {{{#!if au+=(tn-tx), ab-=ty |
|---|
| 749 | }}} |
|---|
| 750 | tn을 빈 문자열로 초기화합니다. |
|---|
| 751 | {{{#!if tn="" |
|---|
| 752 | }}} |
|---|
| 753 | }}} |
|---|
| 754 | ##i=1 part 2 |
|---|
| 755 | br(0으로 나누어떨어짐) 이 걸려있으면 실행하지 않습니다. 그러므로 전체적으로 조건을 !br로 둔 다음 계산을 진행합니다. |
|---|
| 756 | {{{#!if !br |
|---|
| 757 | tw, tx, ty를 정의하고 처리하는 과정은 앞자리에서 몫을 찾는 과정과 동일합니다. 앞의 part 1에서 이미 au, ab를 정수로 만들었으므로 여기에 au, ab를 정수로 만드는 처리를 할 필요가 없습니다. |
|---|
| 758 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty |
|---|
| 759 | }}} |
|---|
| 760 | ty를 정수로 바꾸는 과정을 아래 if 조건문으로 병합합니다. |
|---|
| 761 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 762 | {{{#!if tw=(tw==0)?0:tw-1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 763 | }}}}}} |
|---|
| 764 | {{{#!if ty>ab |
|---|
| 765 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 766 | }}}}}}{{{#!if au-=tx, ab-=ty |
|---|
| 767 | }}} |
|---|
| 768 | 앞에서 계산된 tz의 값을 tw에 더한 다음 tw를 문자열로 바꿉니다. 그리고 tm에 문자열로 바꾼 tw을 더합니다. |
|---|
| 769 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw |
|---|
| 770 | }}} |
|---|
| 771 | au와 ab가 모두 0이 될 때 br를 true로 정의합니다. |
|---|
| 772 | {{{#!if (au==0)&&(ab==0) |
|---|
| 773 | {{{#!if br=true |
|---|
| 774 | }}}}}}}}} |
|---|
| 775 | 어느 자릿수부터 br가 true로 되면 이후 자릿수 옮겨 몫을 구하는 과정이나 나머지를 정리하는 과정을 더 이상 할 필요가 없습니다. |
|---|
| 776 | {{{#!if !br |
|---|
| 777 | au, ab를 문자열로 다시 바꾸고 처리하는 과정은 동일합니다. |
|---|
| 778 | {{{#!if au=au.toString(), ab=ab.toString() |
|---|
| 779 | }}} |
|---|
| 780 | ps를 au 자릿수가 18이 되었을 때 true가 되는 논리값으로 정의합니다. |
|---|
| 781 | {{{#!if ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17) |
|---|
| 782 | }}} |
|---|
| 783 | {{{#!if ab=(ab.length<18)?(pd+ab).substr(-18):ab |
|---|
| 784 | }}} |
|---|
| 785 | {{{#!if au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 786 | }}}}}} |
|---|
| 787 | ##i=2 |
|---|
| 788 | 이후부터 과정은 동일합니다. 많아야 소수점 위 36자리, 소수점 아래 36자리 모두를 쓰면 72개이므로 총 72회(for i=0 to i=71)를 진행합니다. |
|---|
| 789 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 790 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 791 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 792 | }}}}}} |
|---|
| 793 | {{{#!if ty>ab |
|---|
| 794 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 795 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 796 | }}}}}}{{{#!if !br |
|---|
| 797 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 798 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 799 | }}}}}} |
|---|
| 800 | {{{#!if ty>ab |
|---|
| 801 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 802 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 803 | {{{#!if br=true |
|---|
| 804 | }}}}}}}}} |
|---|
| 805 | {{{#!if !br |
|---|
| 806 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 807 | }}}}}} |
|---|
| 808 | ##i=3 |
|---|
| 809 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 810 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 811 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 812 | }}}}}} |
|---|
| 813 | {{{#!if ty>ab |
|---|
| 814 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 815 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 816 | }}}}}}{{{#!if !br |
|---|
| 817 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 818 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 819 | }}}}}} |
|---|
| 820 | {{{#!if ty>ab |
|---|
| 821 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 822 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 823 | {{{#!if br=true |
|---|
| 824 | }}}}}}}}} |
|---|
| 825 | {{{#!if !br |
|---|
| 826 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 827 | }}}}}} |
|---|
| 828 | ##i=4 |
|---|
| 829 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 830 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 831 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 832 | }}}}}} |
|---|
| 833 | {{{#!if ty>ab |
|---|
| 834 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 835 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 836 | }}}}}}{{{#!if !br |
|---|
| 837 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 838 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 839 | }}}}}} |
|---|
| 840 | {{{#!if ty>ab |
|---|
| 841 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 842 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 843 | {{{#!if br=true |
|---|
| 844 | }}}}}}}}} |
|---|
| 845 | {{{#!if !br |
|---|
| 846 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 847 | }}}}}} |
|---|
| 848 | ##i=5 |
|---|
| 849 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 850 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 851 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 852 | }}}}}} |
|---|
| 853 | {{{#!if ty>ab |
|---|
| 854 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 855 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 856 | }}}}}}{{{#!if !br |
|---|
| 857 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 858 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 859 | }}}}}} |
|---|
| 860 | {{{#!if ty>ab |
|---|
| 861 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 862 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 863 | {{{#!if br=true |
|---|
| 864 | }}}}}}}}} |
|---|
| 865 | {{{#!if !br |
|---|
| 866 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 867 | }}}}}} |
|---|
| 868 | ##i=6 |
|---|
| 869 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 870 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 871 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 872 | }}}}}} |
|---|
| 873 | {{{#!if ty>ab |
|---|
| 874 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 875 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 876 | }}}}}}{{{#!if !br |
|---|
| 877 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 878 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 879 | }}}}}} |
|---|
| 880 | {{{#!if ty>ab |
|---|
| 881 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 882 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 883 | {{{#!if br=true |
|---|
| 884 | }}}}}}}}} |
|---|
| 885 | {{{#!if !br |
|---|
| 886 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 887 | }}}}}} |
|---|
| 888 | ##i=7 |
|---|
| 889 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 890 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 891 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 892 | }}}}}} |
|---|
| 893 | {{{#!if ty>ab |
|---|
| 894 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 895 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 896 | }}}}}}{{{#!if !br |
|---|
| 897 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 898 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 899 | }}}}}} |
|---|
| 900 | {{{#!if ty>ab |
|---|
| 901 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 902 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 903 | {{{#!if br=true |
|---|
| 904 | }}}}}}}}} |
|---|
| 905 | {{{#!if !br |
|---|
| 906 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 907 | }}}}}} |
|---|
| 908 | ##i=8 |
|---|
| 909 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 910 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 911 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 912 | }}}}}} |
|---|
| 913 | {{{#!if ty>ab |
|---|
| 914 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 915 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 916 | }}}}}}{{{#!if !br |
|---|
| 917 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 918 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 919 | }}}}}} |
|---|
| 920 | {{{#!if ty>ab |
|---|
| 921 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 922 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 923 | {{{#!if br=true |
|---|
| 924 | }}}}}}}}} |
|---|
| 925 | {{{#!if !br |
|---|
| 926 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 927 | }}}}}} |
|---|
| 928 | ##i=9 |
|---|
| 929 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 930 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 931 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 932 | }}}}}} |
|---|
| 933 | {{{#!if ty>ab |
|---|
| 934 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 935 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 936 | }}}}}}{{{#!if !br |
|---|
| 937 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 938 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 939 | }}}}}} |
|---|
| 940 | {{{#!if ty>ab |
|---|
| 941 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 942 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 943 | {{{#!if br=true |
|---|
| 944 | }}}}}}}}} |
|---|
| 945 | {{{#!if !br |
|---|
| 946 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 947 | }}}}}} |
|---|
| 948 | ##i=10 |
|---|
| 949 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 950 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 951 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 952 | }}}}}} |
|---|
| 953 | {{{#!if ty>ab |
|---|
| 954 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 955 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 956 | }}}}}}{{{#!if !br |
|---|
| 957 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 958 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 959 | }}}}}} |
|---|
| 960 | {{{#!if ty>ab |
|---|
| 961 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 962 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 963 | {{{#!if br=true |
|---|
| 964 | }}}}}}}}} |
|---|
| 965 | {{{#!if !br |
|---|
| 966 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 967 | }}}}}} |
|---|
| 968 | ##i=11 |
|---|
| 969 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 970 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 971 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 972 | }}}}}} |
|---|
| 973 | {{{#!if ty>ab |
|---|
| 974 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 975 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 976 | }}}}}}{{{#!if !br |
|---|
| 977 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 978 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 979 | }}}}}} |
|---|
| 980 | {{{#!if ty>ab |
|---|
| 981 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 982 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 983 | {{{#!if br=true |
|---|
| 984 | }}}}}}}}} |
|---|
| 985 | {{{#!if !br |
|---|
| 986 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 987 | }}}}}} |
|---|
| 988 | ##i=12 |
|---|
| 989 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 990 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 991 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 992 | }}}}}} |
|---|
| 993 | {{{#!if ty>ab |
|---|
| 994 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 995 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 996 | }}}}}}{{{#!if !br |
|---|
| 997 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 998 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 999 | }}}}}} |
|---|
| 1000 | {{{#!if ty>ab |
|---|
| 1001 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1002 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1003 | {{{#!if br=true |
|---|
| 1004 | }}}}}}}}} |
|---|
| 1005 | {{{#!if !br |
|---|
| 1006 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1007 | }}}}}} |
|---|
| 1008 | ##i=13 |
|---|
| 1009 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1010 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1011 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1012 | }}}}}} |
|---|
| 1013 | {{{#!if ty>ab |
|---|
| 1014 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1015 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1016 | }}}}}}{{{#!if !br |
|---|
| 1017 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1018 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1019 | }}}}}} |
|---|
| 1020 | {{{#!if ty>ab |
|---|
| 1021 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1022 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1023 | {{{#!if br=true |
|---|
| 1024 | }}}}}}}}} |
|---|
| 1025 | {{{#!if !br |
|---|
| 1026 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1027 | }}}}}} |
|---|
| 1028 | ##i=14 |
|---|
| 1029 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1030 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1031 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1032 | }}}}}} |
|---|
| 1033 | {{{#!if ty>ab |
|---|
| 1034 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1035 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1036 | }}}}}}{{{#!if !br |
|---|
| 1037 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1038 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1039 | }}}}}} |
|---|
| 1040 | {{{#!if ty>ab |
|---|
| 1041 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1042 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1043 | {{{#!if br=true |
|---|
| 1044 | }}}}}}}}} |
|---|
| 1045 | {{{#!if !br |
|---|
| 1046 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1047 | }}}}}} |
|---|
| 1048 | ##i=15 |
|---|
| 1049 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1050 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1051 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1052 | }}}}}} |
|---|
| 1053 | {{{#!if ty>ab |
|---|
| 1054 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1055 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1056 | }}}}}}{{{#!if !br |
|---|
| 1057 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1058 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1059 | }}}}}} |
|---|
| 1060 | {{{#!if ty>ab |
|---|
| 1061 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1062 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1063 | {{{#!if br=true |
|---|
| 1064 | }}}}}}}}} |
|---|
| 1065 | {{{#!if !br |
|---|
| 1066 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1067 | }}}}}} |
|---|
| 1068 | ##i=16 |
|---|
| 1069 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1070 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1071 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1072 | }}}}}} |
|---|
| 1073 | {{{#!if ty>ab |
|---|
| 1074 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1075 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1076 | }}}}}}{{{#!if !br |
|---|
| 1077 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1078 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1079 | }}}}}} |
|---|
| 1080 | {{{#!if ty>ab |
|---|
| 1081 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1082 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1083 | {{{#!if br=true |
|---|
| 1084 | }}}}}}}}} |
|---|
| 1085 | {{{#!if !br |
|---|
| 1086 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1087 | }}}}}} |
|---|
| 1088 | ##i=17 |
|---|
| 1089 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1090 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1091 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1092 | }}}}}} |
|---|
| 1093 | {{{#!if ty>ab |
|---|
| 1094 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1095 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1096 | }}}}}}{{{#!if !br |
|---|
| 1097 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1098 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1099 | }}}}}} |
|---|
| 1100 | {{{#!if ty>ab |
|---|
| 1101 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1102 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1103 | {{{#!if br=true |
|---|
| 1104 | }}}}}}}}} |
|---|
| 1105 | {{{#!if !br |
|---|
| 1106 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1107 | }}}}}} |
|---|
| 1108 | ##i=18 |
|---|
| 1109 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1110 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1111 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1112 | }}}}}} |
|---|
| 1113 | {{{#!if ty>ab |
|---|
| 1114 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1115 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1116 | }}}}}}{{{#!if !br |
|---|
| 1117 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1118 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1119 | }}}}}} |
|---|
| 1120 | {{{#!if ty>ab |
|---|
| 1121 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1122 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1123 | {{{#!if br=true |
|---|
| 1124 | }}}}}}}}} |
|---|
| 1125 | {{{#!if !br |
|---|
| 1126 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1127 | }}}}}} |
|---|
| 1128 | ##i=19 |
|---|
| 1129 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1130 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1131 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1132 | }}}}}} |
|---|
| 1133 | {{{#!if ty>ab |
|---|
| 1134 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1135 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1136 | }}}}}}{{{#!if !br |
|---|
| 1137 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1138 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1139 | }}}}}} |
|---|
| 1140 | {{{#!if ty>ab |
|---|
| 1141 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1142 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1143 | {{{#!if br=true |
|---|
| 1144 | }}}}}}}}} |
|---|
| 1145 | {{{#!if !br |
|---|
| 1146 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1147 | }}}}}} |
|---|
| 1148 | ##i=20 |
|---|
| 1149 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1150 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1151 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1152 | }}}}}} |
|---|
| 1153 | {{{#!if ty>ab |
|---|
| 1154 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1155 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1156 | }}}}}}{{{#!if !br |
|---|
| 1157 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1158 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1159 | }}}}}} |
|---|
| 1160 | {{{#!if ty>ab |
|---|
| 1161 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1162 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1163 | {{{#!if br=true |
|---|
| 1164 | }}}}}}}}} |
|---|
| 1165 | {{{#!if !br |
|---|
| 1166 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1167 | }}}}}} |
|---|
| 1168 | ##i=21 |
|---|
| 1169 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1170 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1171 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1172 | }}}}}} |
|---|
| 1173 | {{{#!if ty>ab |
|---|
| 1174 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1175 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1176 | }}}}}}{{{#!if !br |
|---|
| 1177 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1178 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1179 | }}}}}} |
|---|
| 1180 | {{{#!if ty>ab |
|---|
| 1181 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1182 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1183 | {{{#!if br=true |
|---|
| 1184 | }}}}}}}}} |
|---|
| 1185 | {{{#!if !br |
|---|
| 1186 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1187 | }}}}}} |
|---|
| 1188 | ##i=22 |
|---|
| 1189 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1190 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1191 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1192 | }}}}}} |
|---|
| 1193 | {{{#!if ty>ab |
|---|
| 1194 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1195 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1196 | }}}}}}{{{#!if !br |
|---|
| 1197 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1198 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1199 | }}}}}} |
|---|
| 1200 | {{{#!if ty>ab |
|---|
| 1201 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1202 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1203 | {{{#!if br=true |
|---|
| 1204 | }}}}}}}}} |
|---|
| 1205 | {{{#!if !br |
|---|
| 1206 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1207 | }}}}}} |
|---|
| 1208 | ##i=23 |
|---|
| 1209 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1210 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1211 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1212 | }}}}}} |
|---|
| 1213 | {{{#!if ty>ab |
|---|
| 1214 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1215 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1216 | }}}}}}{{{#!if !br |
|---|
| 1217 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1218 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1219 | }}}}}} |
|---|
| 1220 | {{{#!if ty>ab |
|---|
| 1221 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1222 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1223 | {{{#!if br=true |
|---|
| 1224 | }}}}}}}}} |
|---|
| 1225 | {{{#!if !br |
|---|
| 1226 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1227 | }}}}}} |
|---|
| 1228 | ##i=24 |
|---|
| 1229 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1230 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1231 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1232 | }}}}}} |
|---|
| 1233 | {{{#!if ty>ab |
|---|
| 1234 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1235 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1236 | }}}}}}{{{#!if !br |
|---|
| 1237 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1238 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1239 | }}}}}} |
|---|
| 1240 | {{{#!if ty>ab |
|---|
| 1241 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1242 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1243 | {{{#!if br=true |
|---|
| 1244 | }}}}}}}}} |
|---|
| 1245 | {{{#!if !br |
|---|
| 1246 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1247 | }}}}}} |
|---|
| 1248 | ##i=25 |
|---|
| 1249 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1250 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1251 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1252 | }}}}}} |
|---|
| 1253 | {{{#!if ty>ab |
|---|
| 1254 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1255 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1256 | }}}}}}{{{#!if !br |
|---|
| 1257 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1258 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1259 | }}}}}} |
|---|
| 1260 | {{{#!if ty>ab |
|---|
| 1261 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1262 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1263 | {{{#!if br=true |
|---|
| 1264 | }}}}}}}}} |
|---|
| 1265 | {{{#!if !br |
|---|
| 1266 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1267 | }}}}}} |
|---|
| 1268 | ##i=26 |
|---|
| 1269 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1270 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1271 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1272 | }}}}}} |
|---|
| 1273 | {{{#!if ty>ab |
|---|
| 1274 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1275 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1276 | }}}}}}{{{#!if !br |
|---|
| 1277 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1278 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1279 | }}}}}} |
|---|
| 1280 | {{{#!if ty>ab |
|---|
| 1281 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1282 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1283 | {{{#!if br=true |
|---|
| 1284 | }}}}}}}}} |
|---|
| 1285 | {{{#!if !br |
|---|
| 1286 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1287 | }}}}}} |
|---|
| 1288 | ##i=27 |
|---|
| 1289 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1290 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1291 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1292 | }}}}}} |
|---|
| 1293 | {{{#!if ty>ab |
|---|
| 1294 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1295 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1296 | }}}}}}{{{#!if !br |
|---|
| 1297 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1298 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1299 | }}}}}} |
|---|
| 1300 | {{{#!if ty>ab |
|---|
| 1301 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1302 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1303 | {{{#!if br=true |
|---|
| 1304 | }}}}}}}}} |
|---|
| 1305 | {{{#!if !br |
|---|
| 1306 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1307 | }}}}}} |
|---|
| 1308 | ##i=28 |
|---|
| 1309 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1310 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1311 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1312 | }}}}}} |
|---|
| 1313 | {{{#!if ty>ab |
|---|
| 1314 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1315 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1316 | }}}}}}{{{#!if !br |
|---|
| 1317 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1318 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1319 | }}}}}} |
|---|
| 1320 | {{{#!if ty>ab |
|---|
| 1321 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1322 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1323 | {{{#!if br=true |
|---|
| 1324 | }}}}}}}}} |
|---|
| 1325 | {{{#!if !br |
|---|
| 1326 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1327 | }}}}}} |
|---|
| 1328 | ##i=29 |
|---|
| 1329 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1330 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1331 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1332 | }}}}}} |
|---|
| 1333 | {{{#!if ty>ab |
|---|
| 1334 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1335 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1336 | }}}}}}{{{#!if !br |
|---|
| 1337 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1338 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1339 | }}}}}} |
|---|
| 1340 | {{{#!if ty>ab |
|---|
| 1341 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1342 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1343 | {{{#!if br=true |
|---|
| 1344 | }}}}}}}}} |
|---|
| 1345 | {{{#!if !br |
|---|
| 1346 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1347 | }}}}}} |
|---|
| 1348 | ##i=30 |
|---|
| 1349 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1350 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1351 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1352 | }}}}}} |
|---|
| 1353 | {{{#!if ty>ab |
|---|
| 1354 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1355 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1356 | }}}}}}{{{#!if !br |
|---|
| 1357 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1358 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1359 | }}}}}} |
|---|
| 1360 | {{{#!if ty>ab |
|---|
| 1361 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1362 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1363 | {{{#!if br=true |
|---|
| 1364 | }}}}}}}}} |
|---|
| 1365 | {{{#!if !br |
|---|
| 1366 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1367 | }}}}}} |
|---|
| 1368 | ##i=31 |
|---|
| 1369 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1370 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1371 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1372 | }}}}}} |
|---|
| 1373 | {{{#!if ty>ab |
|---|
| 1374 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1375 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1376 | }}}}}}{{{#!if !br |
|---|
| 1377 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1378 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1379 | }}}}}} |
|---|
| 1380 | {{{#!if ty>ab |
|---|
| 1381 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1382 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1383 | {{{#!if br=true |
|---|
| 1384 | }}}}}}}}} |
|---|
| 1385 | {{{#!if !br |
|---|
| 1386 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1387 | }}}}}} |
|---|
| 1388 | ##i=32 |
|---|
| 1389 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1390 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1391 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1392 | }}}}}} |
|---|
| 1393 | {{{#!if ty>ab |
|---|
| 1394 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1395 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1396 | }}}}}}{{{#!if !br |
|---|
| 1397 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1398 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1399 | }}}}}} |
|---|
| 1400 | {{{#!if ty>ab |
|---|
| 1401 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1402 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1403 | {{{#!if br=true |
|---|
| 1404 | }}}}}}}}} |
|---|
| 1405 | {{{#!if !br |
|---|
| 1406 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1407 | }}}}}} |
|---|
| 1408 | ##i=33 |
|---|
| 1409 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1410 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1411 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1412 | }}}}}} |
|---|
| 1413 | {{{#!if ty>ab |
|---|
| 1414 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1415 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1416 | }}}}}}{{{#!if !br |
|---|
| 1417 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1418 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1419 | }}}}}} |
|---|
| 1420 | {{{#!if ty>ab |
|---|
| 1421 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1422 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1423 | {{{#!if br=true |
|---|
| 1424 | }}}}}}}}} |
|---|
| 1425 | {{{#!if !br |
|---|
| 1426 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1427 | }}}}}} |
|---|
| 1428 | ##i=34 |
|---|
| 1429 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1430 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1431 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1432 | }}}}}} |
|---|
| 1433 | {{{#!if ty>ab |
|---|
| 1434 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1435 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1436 | }}}}}}{{{#!if !br |
|---|
| 1437 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1438 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1439 | }}}}}} |
|---|
| 1440 | {{{#!if ty>ab |
|---|
| 1441 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1442 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1443 | {{{#!if br=true |
|---|
| 1444 | }}}}}}}}} |
|---|
| 1445 | {{{#!if !br |
|---|
| 1446 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1447 | }}}}}} |
|---|
| 1448 | ##i=35 |
|---|
| 1449 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1450 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1451 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1452 | }}}}}} |
|---|
| 1453 | {{{#!if ty>ab |
|---|
| 1454 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1455 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1456 | }}}}}}{{{#!if !br |
|---|
| 1457 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1458 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1459 | }}}}}} |
|---|
| 1460 | {{{#!if ty>ab |
|---|
| 1461 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1462 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1463 | {{{#!if br=true |
|---|
| 1464 | }}}}}}}}} |
|---|
| 1465 | {{{#!if !br |
|---|
| 1466 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1467 | }}}}}} |
|---|
| 1468 | ##i=36 |
|---|
| 1469 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1470 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1471 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1472 | }}}}}} |
|---|
| 1473 | {{{#!if ty>ab |
|---|
| 1474 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1475 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1476 | }}}}}}{{{#!if !br |
|---|
| 1477 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1478 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1479 | }}}}}} |
|---|
| 1480 | {{{#!if ty>ab |
|---|
| 1481 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1482 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1483 | {{{#!if br=true |
|---|
| 1484 | }}}}}}}}} |
|---|
| 1485 | {{{#!if !br |
|---|
| 1486 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1487 | }}}}}} |
|---|
| 1488 | ##i=37 |
|---|
| 1489 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1490 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1491 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1492 | }}}}}} |
|---|
| 1493 | {{{#!if ty>ab |
|---|
| 1494 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1495 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1496 | }}}}}}{{{#!if !br |
|---|
| 1497 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1498 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1499 | }}}}}} |
|---|
| 1500 | {{{#!if ty>ab |
|---|
| 1501 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1502 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1503 | {{{#!if br=true |
|---|
| 1504 | }}}}}}}}} |
|---|
| 1505 | {{{#!if !br |
|---|
| 1506 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1507 | }}}}}} |
|---|
| 1508 | ##i=38 |
|---|
| 1509 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1510 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1511 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1512 | }}}}}} |
|---|
| 1513 | {{{#!if ty>ab |
|---|
| 1514 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1515 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1516 | }}}}}}{{{#!if !br |
|---|
| 1517 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1518 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1519 | }}}}}} |
|---|
| 1520 | {{{#!if ty>ab |
|---|
| 1521 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1522 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1523 | {{{#!if br=true |
|---|
| 1524 | }}}}}}}}} |
|---|
| 1525 | {{{#!if !br |
|---|
| 1526 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1527 | }}}}}} |
|---|
| 1528 | ##i=39 |
|---|
| 1529 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1530 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1531 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1532 | }}}}}} |
|---|
| 1533 | {{{#!if ty>ab |
|---|
| 1534 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1535 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1536 | }}}}}}{{{#!if !br |
|---|
| 1537 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1538 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1539 | }}}}}} |
|---|
| 1540 | {{{#!if ty>ab |
|---|
| 1541 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1542 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1543 | {{{#!if br=true |
|---|
| 1544 | }}}}}}}}} |
|---|
| 1545 | {{{#!if !br |
|---|
| 1546 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1547 | }}}}}} |
|---|
| 1548 | ##i=40 |
|---|
| 1549 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1550 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1551 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1552 | }}}}}} |
|---|
| 1553 | {{{#!if ty>ab |
|---|
| 1554 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1555 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1556 | }}}}}}{{{#!if !br |
|---|
| 1557 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1558 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1559 | }}}}}} |
|---|
| 1560 | {{{#!if ty>ab |
|---|
| 1561 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1562 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1563 | {{{#!if br=true |
|---|
| 1564 | }}}}}}}}} |
|---|
| 1565 | {{{#!if !br |
|---|
| 1566 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1567 | }}}}}} |
|---|
| 1568 | ##i=41 |
|---|
| 1569 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1570 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1571 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1572 | }}}}}} |
|---|
| 1573 | {{{#!if ty>ab |
|---|
| 1574 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1575 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1576 | }}}}}}{{{#!if !br |
|---|
| 1577 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1578 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1579 | }}}}}} |
|---|
| 1580 | {{{#!if ty>ab |
|---|
| 1581 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1582 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1583 | {{{#!if br=true |
|---|
| 1584 | }}}}}}}}} |
|---|
| 1585 | {{{#!if !br |
|---|
| 1586 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1587 | }}}}}} |
|---|
| 1588 | ##i=42 |
|---|
| 1589 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1590 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1591 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1592 | }}}}}} |
|---|
| 1593 | {{{#!if ty>ab |
|---|
| 1594 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1595 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1596 | }}}}}}{{{#!if !br |
|---|
| 1597 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1598 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1599 | }}}}}} |
|---|
| 1600 | {{{#!if ty>ab |
|---|
| 1601 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1602 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1603 | {{{#!if br=true |
|---|
| 1604 | }}}}}}}}} |
|---|
| 1605 | {{{#!if !br |
|---|
| 1606 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1607 | }}}}}} |
|---|
| 1608 | ##i=43 |
|---|
| 1609 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1610 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1611 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1612 | }}}}}} |
|---|
| 1613 | {{{#!if ty>ab |
|---|
| 1614 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1615 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1616 | }}}}}}{{{#!if !br |
|---|
| 1617 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1618 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1619 | }}}}}} |
|---|
| 1620 | {{{#!if ty>ab |
|---|
| 1621 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1622 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1623 | {{{#!if br=true |
|---|
| 1624 | }}}}}}}}} |
|---|
| 1625 | {{{#!if !br |
|---|
| 1626 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1627 | }}}}}} |
|---|
| 1628 | ##i=44 |
|---|
| 1629 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1630 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1631 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1632 | }}}}}} |
|---|
| 1633 | {{{#!if ty>ab |
|---|
| 1634 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1635 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1636 | }}}}}}{{{#!if !br |
|---|
| 1637 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1638 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1639 | }}}}}} |
|---|
| 1640 | {{{#!if ty>ab |
|---|
| 1641 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1642 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1643 | {{{#!if br=true |
|---|
| 1644 | }}}}}}}}} |
|---|
| 1645 | {{{#!if !br |
|---|
| 1646 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1647 | }}}}}} |
|---|
| 1648 | ##i=45 |
|---|
| 1649 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1650 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1651 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1652 | }}}}}} |
|---|
| 1653 | {{{#!if ty>ab |
|---|
| 1654 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1655 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1656 | }}}}}}{{{#!if !br |
|---|
| 1657 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1658 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1659 | }}}}}} |
|---|
| 1660 | {{{#!if ty>ab |
|---|
| 1661 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1662 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1663 | {{{#!if br=true |
|---|
| 1664 | }}}}}}}}} |
|---|
| 1665 | {{{#!if !br |
|---|
| 1666 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1667 | }}}}}} |
|---|
| 1668 | ##i=46 |
|---|
| 1669 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1670 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1671 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1672 | }}}}}} |
|---|
| 1673 | {{{#!if ty>ab |
|---|
| 1674 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1675 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1676 | }}}}}}{{{#!if !br |
|---|
| 1677 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1678 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1679 | }}}}}} |
|---|
| 1680 | {{{#!if ty>ab |
|---|
| 1681 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1682 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1683 | {{{#!if br=true |
|---|
| 1684 | }}}}}}}}} |
|---|
| 1685 | {{{#!if !br |
|---|
| 1686 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1687 | }}}}}} |
|---|
| 1688 | ##i=47 |
|---|
| 1689 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1690 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1691 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1692 | }}}}}} |
|---|
| 1693 | {{{#!if ty>ab |
|---|
| 1694 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1695 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1696 | }}}}}}{{{#!if !br |
|---|
| 1697 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1698 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1699 | }}}}}} |
|---|
| 1700 | {{{#!if ty>ab |
|---|
| 1701 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1702 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1703 | {{{#!if br=true |
|---|
| 1704 | }}}}}}}}} |
|---|
| 1705 | {{{#!if !br |
|---|
| 1706 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1707 | }}}}}} |
|---|
| 1708 | ##i=48 |
|---|
| 1709 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1710 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1711 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1712 | }}}}}} |
|---|
| 1713 | {{{#!if ty>ab |
|---|
| 1714 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1715 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1716 | }}}}}}{{{#!if !br |
|---|
| 1717 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1718 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1719 | }}}}}} |
|---|
| 1720 | {{{#!if ty>ab |
|---|
| 1721 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1722 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1723 | {{{#!if br=true |
|---|
| 1724 | }}}}}}}}} |
|---|
| 1725 | {{{#!if !br |
|---|
| 1726 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1727 | }}}}}} |
|---|
| 1728 | ##i=49 |
|---|
| 1729 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1730 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1731 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1732 | }}}}}} |
|---|
| 1733 | {{{#!if ty>ab |
|---|
| 1734 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1735 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1736 | }}}}}}{{{#!if !br |
|---|
| 1737 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1738 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1739 | }}}}}} |
|---|
| 1740 | {{{#!if ty>ab |
|---|
| 1741 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1742 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1743 | {{{#!if br=true |
|---|
| 1744 | }}}}}}}}} |
|---|
| 1745 | {{{#!if !br |
|---|
| 1746 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1747 | }}}}}} |
|---|
| 1748 | ##i=50 |
|---|
| 1749 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1750 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1751 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1752 | }}}}}} |
|---|
| 1753 | {{{#!if ty>ab |
|---|
| 1754 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1755 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1756 | }}}}}}{{{#!if !br |
|---|
| 1757 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1758 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1759 | }}}}}} |
|---|
| 1760 | {{{#!if ty>ab |
|---|
| 1761 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1762 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1763 | {{{#!if br=true |
|---|
| 1764 | }}}}}}}}} |
|---|
| 1765 | {{{#!if !br |
|---|
| 1766 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1767 | }}}}}} |
|---|
| 1768 | ##i=51 |
|---|
| 1769 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1770 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1771 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1772 | }}}}}} |
|---|
| 1773 | {{{#!if ty>ab |
|---|
| 1774 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1775 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1776 | }}}}}}{{{#!if !br |
|---|
| 1777 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1778 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1779 | }}}}}} |
|---|
| 1780 | {{{#!if ty>ab |
|---|
| 1781 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1782 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1783 | {{{#!if br=true |
|---|
| 1784 | }}}}}}}}} |
|---|
| 1785 | {{{#!if !br |
|---|
| 1786 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1787 | }}}}}} |
|---|
| 1788 | ##i=52 |
|---|
| 1789 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1790 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1791 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1792 | }}}}}} |
|---|
| 1793 | {{{#!if ty>ab |
|---|
| 1794 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1795 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1796 | }}}}}}{{{#!if !br |
|---|
| 1797 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1798 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1799 | }}}}}} |
|---|
| 1800 | {{{#!if ty>ab |
|---|
| 1801 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1802 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1803 | {{{#!if br=true |
|---|
| 1804 | }}}}}}}}} |
|---|
| 1805 | {{{#!if !br |
|---|
| 1806 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1807 | }}}}}} |
|---|
| 1808 | ##i=53 |
|---|
| 1809 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1810 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1811 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1812 | }}}}}} |
|---|
| 1813 | {{{#!if ty>ab |
|---|
| 1814 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1815 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1816 | }}}}}}{{{#!if !br |
|---|
| 1817 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1818 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1819 | }}}}}} |
|---|
| 1820 | {{{#!if ty>ab |
|---|
| 1821 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1822 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1823 | {{{#!if br=true |
|---|
| 1824 | }}}}}}}}} |
|---|
| 1825 | {{{#!if !br |
|---|
| 1826 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1827 | }}}}}} |
|---|
| 1828 | ##i=54 |
|---|
| 1829 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1830 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1831 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1832 | }}}}}} |
|---|
| 1833 | {{{#!if ty>ab |
|---|
| 1834 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1835 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1836 | }}}}}}{{{#!if !br |
|---|
| 1837 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1838 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1839 | }}}}}} |
|---|
| 1840 | {{{#!if ty>ab |
|---|
| 1841 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1842 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1843 | {{{#!if br=true |
|---|
| 1844 | }}}}}}}}} |
|---|
| 1845 | {{{#!if !br |
|---|
| 1846 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1847 | }}}}}} |
|---|
| 1848 | ##i=55 |
|---|
| 1849 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1850 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1851 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1852 | }}}}}} |
|---|
| 1853 | {{{#!if ty>ab |
|---|
| 1854 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1855 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1856 | }}}}}}{{{#!if !br |
|---|
| 1857 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1858 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1859 | }}}}}} |
|---|
| 1860 | {{{#!if ty>ab |
|---|
| 1861 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1862 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1863 | {{{#!if br=true |
|---|
| 1864 | }}}}}}}}} |
|---|
| 1865 | {{{#!if !br |
|---|
| 1866 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1867 | }}}}}} |
|---|
| 1868 | ##i=56 |
|---|
| 1869 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1870 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1871 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1872 | }}}}}} |
|---|
| 1873 | {{{#!if ty>ab |
|---|
| 1874 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1875 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1876 | }}}}}}{{{#!if !br |
|---|
| 1877 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1878 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1879 | }}}}}} |
|---|
| 1880 | {{{#!if ty>ab |
|---|
| 1881 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1882 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1883 | {{{#!if br=true |
|---|
| 1884 | }}}}}}}}} |
|---|
| 1885 | {{{#!if !br |
|---|
| 1886 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1887 | }}}}}} |
|---|
| 1888 | ##i=57 |
|---|
| 1889 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1890 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1891 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1892 | }}}}}} |
|---|
| 1893 | {{{#!if ty>ab |
|---|
| 1894 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1895 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1896 | }}}}}}{{{#!if !br |
|---|
| 1897 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1898 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1899 | }}}}}} |
|---|
| 1900 | {{{#!if ty>ab |
|---|
| 1901 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1902 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1903 | {{{#!if br=true |
|---|
| 1904 | }}}}}}}}} |
|---|
| 1905 | {{{#!if !br |
|---|
| 1906 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1907 | }}}}}} |
|---|
| 1908 | ##i=58 |
|---|
| 1909 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1910 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1911 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1912 | }}}}}} |
|---|
| 1913 | {{{#!if ty>ab |
|---|
| 1914 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1915 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1916 | }}}}}}{{{#!if !br |
|---|
| 1917 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1918 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1919 | }}}}}} |
|---|
| 1920 | {{{#!if ty>ab |
|---|
| 1921 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1922 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1923 | {{{#!if br=true |
|---|
| 1924 | }}}}}}}}} |
|---|
| 1925 | {{{#!if !br |
|---|
| 1926 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1927 | }}}}}} |
|---|
| 1928 | ##i=59 |
|---|
| 1929 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1930 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1931 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1932 | }}}}}} |
|---|
| 1933 | {{{#!if ty>ab |
|---|
| 1934 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1935 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1936 | }}}}}}{{{#!if !br |
|---|
| 1937 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1938 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1939 | }}}}}} |
|---|
| 1940 | {{{#!if ty>ab |
|---|
| 1941 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1942 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1943 | {{{#!if br=true |
|---|
| 1944 | }}}}}}}}} |
|---|
| 1945 | {{{#!if !br |
|---|
| 1946 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1947 | }}}}}} |
|---|
| 1948 | ##i=60 |
|---|
| 1949 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1950 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1951 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1952 | }}}}}} |
|---|
| 1953 | {{{#!if ty>ab |
|---|
| 1954 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1955 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1956 | }}}}}}{{{#!if !br |
|---|
| 1957 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1958 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1959 | }}}}}} |
|---|
| 1960 | {{{#!if ty>ab |
|---|
| 1961 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1962 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1963 | {{{#!if br=true |
|---|
| 1964 | }}}}}}}}} |
|---|
| 1965 | {{{#!if !br |
|---|
| 1966 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1967 | }}}}}} |
|---|
| 1968 | ##i=61 |
|---|
| 1969 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1970 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1971 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1972 | }}}}}} |
|---|
| 1973 | {{{#!if ty>ab |
|---|
| 1974 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1975 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1976 | }}}}}}{{{#!if !br |
|---|
| 1977 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1978 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1979 | }}}}}} |
|---|
| 1980 | {{{#!if ty>ab |
|---|
| 1981 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 1982 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 1983 | {{{#!if br=true |
|---|
| 1984 | }}}}}}}}} |
|---|
| 1985 | {{{#!if !br |
|---|
| 1986 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 1987 | }}}}}} |
|---|
| 1988 | ##i=62 |
|---|
| 1989 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 1990 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 1991 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 1992 | }}}}}} |
|---|
| 1993 | {{{#!if ty>ab |
|---|
| 1994 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 1995 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 1996 | }}}}}}{{{#!if !br |
|---|
| 1997 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 1998 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 1999 | }}}}}} |
|---|
| 2000 | {{{#!if ty>ab |
|---|
| 2001 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2002 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2003 | {{{#!if br=true |
|---|
| 2004 | }}}}}}}}} |
|---|
| 2005 | {{{#!if !br |
|---|
| 2006 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2007 | }}}}}} |
|---|
| 2008 | ##i=63 |
|---|
| 2009 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2010 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2011 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2012 | }}}}}} |
|---|
| 2013 | {{{#!if ty>ab |
|---|
| 2014 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2015 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2016 | }}}}}}{{{#!if !br |
|---|
| 2017 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2018 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2019 | }}}}}} |
|---|
| 2020 | {{{#!if ty>ab |
|---|
| 2021 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2022 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2023 | {{{#!if br=true |
|---|
| 2024 | }}}}}}}}} |
|---|
| 2025 | {{{#!if !br |
|---|
| 2026 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2027 | }}}}}} |
|---|
| 2028 | ##i=64 |
|---|
| 2029 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2030 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2031 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2032 | }}}}}} |
|---|
| 2033 | {{{#!if ty>ab |
|---|
| 2034 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2035 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2036 | }}}}}}{{{#!if !br |
|---|
| 2037 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2038 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2039 | }}}}}} |
|---|
| 2040 | {{{#!if ty>ab |
|---|
| 2041 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2042 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2043 | {{{#!if br=true |
|---|
| 2044 | }}}}}}}}} |
|---|
| 2045 | {{{#!if !br |
|---|
| 2046 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2047 | }}}}}} |
|---|
| 2048 | ##i=65 |
|---|
| 2049 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2050 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2051 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2052 | }}}}}} |
|---|
| 2053 | {{{#!if ty>ab |
|---|
| 2054 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2055 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2056 | }}}}}}{{{#!if !br |
|---|
| 2057 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2058 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2059 | }}}}}} |
|---|
| 2060 | {{{#!if ty>ab |
|---|
| 2061 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2062 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2063 | {{{#!if br=true |
|---|
| 2064 | }}}}}}}}} |
|---|
| 2065 | {{{#!if !br |
|---|
| 2066 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2067 | }}}}}} |
|---|
| 2068 | ##i=66 |
|---|
| 2069 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2070 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2071 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2072 | }}}}}} |
|---|
| 2073 | {{{#!if ty>ab |
|---|
| 2074 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2075 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2076 | }}}}}}{{{#!if !br |
|---|
| 2077 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2078 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2079 | }}}}}} |
|---|
| 2080 | {{{#!if ty>ab |
|---|
| 2081 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2082 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2083 | {{{#!if br=true |
|---|
| 2084 | }}}}}}}}} |
|---|
| 2085 | {{{#!if !br |
|---|
| 2086 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2087 | }}}}}} |
|---|
| 2088 | ##i=67 |
|---|
| 2089 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2090 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2091 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2092 | }}}}}} |
|---|
| 2093 | {{{#!if ty>ab |
|---|
| 2094 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2095 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2096 | }}}}}}{{{#!if !br |
|---|
| 2097 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2098 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2099 | }}}}}} |
|---|
| 2100 | {{{#!if ty>ab |
|---|
| 2101 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2102 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2103 | {{{#!if br=true |
|---|
| 2104 | }}}}}}}}} |
|---|
| 2105 | {{{#!if !br |
|---|
| 2106 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2107 | }}}}}} |
|---|
| 2108 | ##i=68 |
|---|
| 2109 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2110 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2111 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2112 | }}}}}} |
|---|
| 2113 | {{{#!if ty>ab |
|---|
| 2114 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2115 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2116 | }}}}}}{{{#!if !br |
|---|
| 2117 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2118 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2119 | }}}}}} |
|---|
| 2120 | {{{#!if ty>ab |
|---|
| 2121 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2122 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2123 | {{{#!if br=true |
|---|
| 2124 | }}}}}}}}} |
|---|
| 2125 | {{{#!if !br |
|---|
| 2126 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2127 | }}}}}} |
|---|
| 2128 | ##i=69 |
|---|
| 2129 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2130 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2131 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2132 | }}}}}} |
|---|
| 2133 | {{{#!if ty>ab |
|---|
| 2134 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2135 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2136 | }}}}}}{{{#!if !br |
|---|
| 2137 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2138 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2139 | }}}}}} |
|---|
| 2140 | {{{#!if ty>ab |
|---|
| 2141 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2142 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2143 | {{{#!if br=true |
|---|
| 2144 | }}}}}}}}} |
|---|
| 2145 | {{{#!if !br |
|---|
| 2146 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2147 | }}}}}} |
|---|
| 2148 | ##i=70 |
|---|
| 2149 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2150 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2151 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2152 | }}}}}} |
|---|
| 2153 | {{{#!if ty>ab |
|---|
| 2154 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2155 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2156 | }}}}}}{{{#!if !br |
|---|
| 2157 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2158 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2159 | }}}}}} |
|---|
| 2160 | {{{#!if ty>ab |
|---|
| 2161 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2162 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2163 | {{{#!if br=true |
|---|
| 2164 | }}}}}}}}} |
|---|
| 2165 | {{{#!if !br |
|---|
| 2166 | {{{#!if au=au.toString(), ab=ab.toString(), ps=(au.length==18), tn=ps?au.substr(0,1):"", au=ps?au.substr(1):(pd+au).substr(-17), ab=(ab.length<18)?(pd+ab).substr(-18):ab, au+=ab.substr(0,1), ab=ab.substr(1)+"0" |
|---|
| 2167 | }}}}}} |
|---|
| 2168 | ##i=71 |
|---|
| 2169 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
|---|
| 2170 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) |
|---|
| 2171 | {{{#!if tz=(tz==0)?0:tz-1, tx=bu*tz, ty=bb*tz, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty |
|---|
| 2172 | }}}}}} |
|---|
| 2173 | {{{#!if ty>ab |
|---|
| 2174 | {{{#!if tn-=1, ab+=+("1"+pd) |
|---|
| 2175 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" |
|---|
| 2176 | }}}}}}{{{#!if !br |
|---|
| 2177 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) |
|---|
| 2178 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw, ty=ty.toString(), ps=(ty.length==19), tx=ps?tx+(+ty.substr(0,1)):tx, ty=ps?ty=ty.substr(1):ty, ty=+ty, |
|---|
| 2179 | }}}}}} |
|---|
| 2180 | {{{#!if ty>ab |
|---|
| 2181 | {{{#!if au-=1, ab+=+("1"+pd) |
|---|
| 2182 | }}}}}}{{{#!if au-=tx, ab-=ty, tw+=tz, tw=tw.toString(), tm+=tw, (au==0)&&(ab==0) |
|---|
| 2183 | {{{#!if br=true |
|---|
| 2184 | }}}}}}}}} |
|---|
| 2185 | tn을 빈 문자열로 초기화하고 변수 ts를 가져옵니다. 마지막 72회까지 몫을 구하는 계산을 했음에도 불구하고 나머지가 나누어떨어져 0이 되지 않는다면 tn을 "..."로, ts를 true로 바꿉니다. |
|---|
| 2186 | {{{#!if tn="", !br |
|---|
| 2187 | {{{#!if tn="...", ts=true |
|---|
| 2188 | }}}}}} |
|---|
| 2189 | |
|---|
| 2190 | ##rs 매기기 |
|---|
| 2191 | 앞에 매겼던 ac와 bc로 판별식을 만듭니다. i=ac-bc로 둡니다. a의 가장 큰 자리와 b의 가장 큰 자리가 얼마나 차이나는가에 따라 몫에 매기는 소수점 위치가 달라집니다. i>=-35 (ac==-18이고 bc==17일 경우), i<=35 (ac==17이고 bc=-18일 경우)입니다. |
|---|
| 2192 | {{{#!if i=ac-bc |
|---|
| 2193 | }}} |
|---|
| 2194 | a에서 b를 나누면 몫을 10^i 의 자리부터 매기게 됩니다. 소수점 아랫부분까지 몫 기록이 이어지면 상관이 없겠으나, 몫이 소수가 아닌 정수로 기록될 때 실제 자릿수에 해당하는 길이보다 (금방 나누어떨어져) 몫이 짧게 기록되고 그치는 경우 남는 자리에 자동적으로 0을 채워주지 않게 됩니다. 이러면 수동으로 0을 채워주어야 하며, (i==0일 경우 10^0의 자리부터 몫을 기록하므로 10^1과 같거나 큰 자리부터 기록할 경우 곧) i>0일 때에만 의미가 있습니다. |
|---|
| 2195 | 이를테면 4000/2를 계산하는 경우 몫이 "2"까지만 기록되며 뒤에 000은 수동으로 채워주어야 합니다. |
|---|
| 2196 | {{{#!if i>0 |
|---|
| 2197 | 몫은 tm으로 기록되므로 tm의 길이를 따집니다. i가 양수이고 몫이 정수로 나누어떨어질 경우, tm의 길이가 적어도 i+1이 되게 맞춥니다. |
|---|
| 2198 | {{{#!if i+1>tm.length |
|---|
| 2199 | i+1보타 tm의 길이가 작은 경우 i==35인 경우를 감안하여 tm의 뒷부분을 pd+pd --더블 패드--로 채운 다음 i+1길이만큼 오려냅니다. |
|---|
| 2200 | {{{#!if tm+=pd+pd, tm=tm.substr(0,i+1) |
|---|
| 2201 | }}}}}}}}} |
|---|
| 2202 | |
|---|
| 2203 | i가 18 이상 (18 이상 35 이하)이면 rs를 매길 수 있습니다. 몫을 적어놓은 문자열 tm의 0번 index에 들어가는 문자부터 i에서 18을 뺀 값의 index에 들어가는 문자까지를 rs로 두며, rs의 문자열 길이는 i-18+1 곧 i-17입니다. |
|---|
| 2204 | {{{#!if i>=18 |
|---|
| 2205 | tm에서 rs를 오려낸 문자열을 tm으로 다시 둡니다. |
|---|
| 2206 | {{{#!if rs=tm.substr(0,i-17), tm=tm.substr(i-17) |
|---|
| 2207 | }}}}}} |
|---|
| 2208 | |
|---|
| 2209 | ##ru 매기기 |
|---|
| 2210 | ps를 먼저 false로 초기화한 다음, i>=18 이 되(어 rs를 매기)는 경우 ps를 true로 맞춥니다. |
|---|
| 2211 | {{{#!if ps=false, i>=18 |
|---|
| 2212 | {{{#!if ps=true |
|---|
| 2213 | }}}}}} |
|---|
| 2214 | ps가 true이면 문자열 tm에서 18번째 자리까지를 ru로 두고, tm에서 ru를 오려낸 문자열을 tm으로 둡니다. |
|---|
| 2215 | {{{#!if ps |
|---|
| 2216 | {{{#!if ru=tm.substr(0,18), tm=tm.substr(18) |
|---|
| 2217 | }}}}}} |
|---|
| 2218 | ps가 false이고 (i가 충분히 큰 값이 아니고) i가 0 이상 (0 이상 17 이하)인 수라면 ru를 매길 수 있으며 문자열의 길이는 i+1이 됩니다. |
|---|
| 2219 | {{{#!if !ps&&(i>=0) |
|---|
| 2220 | {{{#!if ru=tm.substr(0,i+1), tm=tm.substr(i+1) |
|---|
| 2221 | }}}}}} |
|---|
| 2222 | |
|---|
| 2223 | ##rb 매기기 |
|---|
| 2224 | i>=0이 되(어 ru를 매기)는 경우 ps를 true로 맞춥니다. |
|---|
| 2225 | {{{#!if i>=0 |
|---|
| 2226 | {{{#!if ps=true |
|---|
| 2227 | }}}}}} |
|---|
| 2228 | ps가 true이면 문자열 tm에서 18번째 자리까지를 rb로 두고, tm에서 rb를 오려낸 문자열을 tm으로 둡니다. |
|---|
| 2229 | {{{#!if ps |
|---|
| 2230 | {{{#!if rb=tm.substr(0,18), tm=tm.substr(18) |
|---|
| 2231 | }}}}}} |
|---|
| 2232 | ps가 false이고 i가 -18 이상 (-18 이상 -1 이하)이면 rb를 매길 수 있습니다. |
|---|
| 2233 | 이 때 몫으로 문자열의 길이는 i+18+1 곧 i+19가 되며 그 앞부분은 0으로 채워집니다. |
|---|
| 2234 | 몫으로 i+19개의 자리가 채워진다면, 몫 앞을 0으로 채우는 수량은 18에서 i+19를 뺀 -i-1이 됩니다. |
|---|
| 2235 | 이것을 substr을 이용하여 (18자리 문자열인) pd의 substr로 채워보자면 |
|---|
| 2236 | 18에서 (-i-1)을 뺀 i+19 번부터 끝까지 해당하는 문자열로 채우면 됩니다. |
|---|
| 2237 | {{{#!if !ps |
|---|
| 2238 | {{{#!if i>=-18 |
|---|
| 2239 | {{{#!if rb=tm.substr(0,i+19), tm=tm.substr(i+19), rb=pd.substr(i+19)+rb |
|---|
| 2240 | }}}}}} |
|---|
| 2241 | 만일 i<0이고 i가 -18보다 작아 rb에 몫을 기록하지 않고 rb보다 더 아래 자리에 기록하게 된다면 rb의 18자리를 모두 0으로 채웁니다. |
|---|
| 2242 | {{{#!if i<-18 |
|---|
| 2243 | {{{#!if rb=pd |
|---|
| 2244 | }}}}}} |
|---|
| 2245 | }}} |
|---|
| 2246 | |
|---|
| 2247 | ##ri 매기기 |
|---|
| 2248 | i>=-18이 되(어 rb를 매기)는 경우 ps를 true로 맞춥니다. |
|---|
| 2249 | {{{#!if i>=-18 |
|---|
| 2250 | {{{#!if ps=true |
|---|
| 2251 | }}}}}} |
|---|
| 2252 | ps가 true이면 rb와 같은 방법으로 ri를 매기고, tm을 다시 정의합니다. |
|---|
| 2253 | {{{#!if ps |
|---|
| 2254 | {{{#!if ri=tm.substr(0,18), tm=tm.substr(18) |
|---|
| 2255 | }}}}}} |
|---|
| 2256 | ps가 false이며 i가 -19 이하 (-36이상 -19 이하이나, i의 최소값은 -35)이면 ri를 매길 수 있습니다. rb와 같습니다. |
|---|
| 2257 | {{{#!if !ps&&(i>=-36) |
|---|
| 2258 | {{{#!if ri=tm.substr(0,i+37), tm=tm.substr(i+37), ri=pd.substr(i+37)+ri |
|---|
| 2259 | }}} |
|---|
| 2260 | }}} |
|---|
| 2261 | |
|---|
| 2262 | ri까지 몫을 기록했음에도 불구하고 여전히 몫이 남는다면 ... 처리를 하고 ts를 true로 바꿉니다. 단, 나눗셈이 나누어떨어지는 식의 경우 경고 코드 2번을 반환합니다. |
|---|
| 2263 | {{{#!if tm.length>0 |
|---|
| 2264 | {{{#!if tn="...", ts=true, wb=br?2:0 |
|---|
| 2265 | }}}}}} |
|---|
| 2266 | |
|---|
| 2267 | 여기까지가 나눗셈의 계산과정입니다. |
|---|
| 2268 | }}} |
|---|
| 2269 | |
|---|
| 2270 | ##== 계산 결과 표시 정리하기 == |
|---|
| 2271 | ##=== 결과값 표시 정리하기 === |
|---|
| 2272 | 연산이 끝났으면 표기된 숫자를 정리합니다. |
|---|
| 2273 | |
|---|
| 2274 | ##rs, ru 정리 부분 |
|---|
| 2275 | 먼저 ru를 (곱셈연산에서 정수값으로 나올 수 있고, 나눗셈에서 몫이 1보다 작은 값이 나오는 경우같이 값을 부여하지 않았다면 초기화할 때 정의했던 정수 0인 채로 있으므로) 문자열로 바꿉니다. |
|---|
| 2276 | {{{#!if ru=ru.toString() |
|---|
| 2277 | }}} |
|---|
| 2278 | 18자리씩 끊어 표기하므로 소수점 위 19~36번째 자리에 해당하는 rs값이 (가령 곱셈에서, 곱한 값을 더한 결과가) 0일 경우 rs를 빈 문자열로 바꿉니다. 이 때 ru를 정수로 바꿔 ru 왼쪽에 있는 0들을 지운 다음, ru를 문자열로 바꿉니다. |
|---|
| 2279 | {{{#!if +rs==0 |
|---|
| 2280 | {{{#!if rs="", ru=+ru, ru=ru.toString() |
|---|
| 2281 | }}}}}} |
|---|
| 2282 | |
|---|
| 2283 | 계산과정에서 ru의 윗자리인 rs값이 0보다 클 경우, 1~18번째 자리인 ru에 빈 자리를 채우도록 ru의 왼쪽을 0으로 채웁니다. |
|---|
| 2284 | {{{#!if +rs>0 |
|---|
| 2285 | {{{#!if rs=rs.toString(), ru=pd+ru, ru=ru.substr(ru.length-18, 18) |
|---|
| 2286 | }}} |
|---|
| 2287 | rs를 정수로 바꿔 rs 앞에 있는 0들을 지운 다음 rs를 문자열로 바꿉니다. |
|---|
| 2288 | {{{#!if rs=+rs, rs=rs.toString() |
|---|
| 2289 | }}}}}} |
|---|
| 2290 | |
|---|
| 2291 | ##rb, ri 정리 부분 |
|---|
| 2292 | i보다 소수점 아래부분을 더 써내려가야 하는 상황이 아닌(나눗셈에서 ts가 false인) 경우에서, 소수점 아래 19~36번째 자리에 해당하는 ri값이 0일 경우 ri를 빈 문자열로 바꿉니다. |
|---|
| 2293 | 이 때 ri와 rb가 모두 0일 경우 rb도 빈 문자열로 바꾸고 rp=0으로 둡니다. |
|---|
| 2294 | {{{#!if !ts |
|---|
| 2295 | {{{#!if +ri==0 |
|---|
| 2296 | {{{#!if ri="" |
|---|
| 2297 | }}}{{{#!if +rb==0 |
|---|
| 2298 | {{{#!if rb="", rp=0 |
|---|
| 2299 | }}}}}}}}}}}} |
|---|
| 2300 | |
|---|
| 2301 | ri가 빈 문자열이 아닐 (+ri가 0보다 클) 때 true를 주는 논리값으로 ps를 정의합니다. |
|---|
| 2302 | {{{#!if ps=(+ri>0) |
|---|
| 2303 | }}} |
|---|
| 2304 | |
|---|
| 2305 | {{{#!if f=="*" |
|---|
| 2306 | 곱셈연산에서 ri가 비어있지 않을 경우 ri와 rb를 문자열로 바꾼 다음 각각 왼쪽을 0으로 채웁니다. |
|---|
| 2307 | {{{#!if ps |
|---|
| 2308 | {{{#!if ri=ri.toString(), ri=pd+ri, ri=ri.substr(ri.length-18, 18), rb=rb.toString(), rb=pd+rb, rb=rb.substr(rb.length-18, 18) |
|---|
| 2309 | }}}}}} |
|---|
| 2310 | 곱셈연산에서 ri가 비어있으나 rb가 비어있지 않을 경우 rb를 문자열로 바꾼 다음 rb의 왼쪽을 0으로 채웁니다. |
|---|
| 2311 | {{{#!if !ps&&(+rb>0) |
|---|
| 2312 | {{{#!if rb=rb.toString(), rb=pd+rb, rb=rb.substr(rb.length-18, 18) |
|---|
| 2313 | }}}}}} |
|---|
| 2314 | }}} |
|---|
| 2315 | |
|---|
| 2316 | !ts인 상황에서 ps가 true이면 rp를 ri의 길이로, 그렇지 않고 rb만 0이 아닌경우 rp를 rb의 길이로 정의합니다. |
|---|
| 2317 | {{{#!if !ts |
|---|
| 2318 | {{{#!if ps |
|---|
| 2319 | {{{#!if this.rp=ri.length |
|---|
| 2320 | }}} |
|---|
| 2321 | ps가 true일 때 19~36번째 자리인 ri까지 계산하므로 rp에 18을 더해야 하지만, 문자열 정리를 하기 위해 문자열의 index 번호를 다루고자 18을 더하는 작업은 뒤로 뻅니다. |
|---|
| 2322 | }}} |
|---|
| 2323 | |
|---|
| 2324 | {{{#!if !ps&&(rb!="") |
|---|
| 2325 | {{{#!if this.rp=rb.length |
|---|
| 2326 | }}}}}} |
|---|
| 2327 | |
|---|
| 2328 | !ts이면서 ri가 빈 문자열이 아닐 경우 ri의 오른쪽부터 붙은 "0"들을 모두 지웁니다. |
|---|
| 2329 | {{{#!if ps |
|---|
| 2330 | {{{#!if (rp>9)&&(ri.substr(rp-9,9)=="000000000") |
|---|
| 2331 | {{{#!if this.ri=ri.substr(0,rp-9), rp-=9 |
|---|
| 2332 | }}}}}} |
|---|
| 2333 | {{{#!if (rp>4)&&(ri.substr(rp-4,4)=="0000") |
|---|
| 2334 | {{{#!if this.ri=ri.substr(0,rp-4), rp-=4 |
|---|
| 2335 | }}}}}} |
|---|
| 2336 | {{{#!if (rp>2)&&(ri.substr(rp-2,2)=="00") |
|---|
| 2337 | {{{#!if this.ri=ri.substr(0,rp-2), rp-=2 |
|---|
| 2338 | }}}}}} |
|---|
| 2339 | {{{#!if (rp>2)&&(ri.substr(rp-2,2)=="00") |
|---|
| 2340 | {{{#!if this.ri=ri.substr(0,rp-2), rp-=2 |
|---|
| 2341 | }}}}}} |
|---|
| 2342 | {{{#!if (rp>1)&&(ri.substr(rp-1,1)=="0") |
|---|
| 2343 | {{{#!if this.ri=ri.substr(0,rp-1), rp-=1 |
|---|
| 2344 | }}}}}} |
|---|
| 2345 | 문자열 정리를 끝냈을 때 rp에 18을 더합니다. |
|---|
| 2346 | {{{#!if rp+=18 |
|---|
| 2347 | }}}}}} |
|---|
| 2348 | |
|---|
| 2349 | !ts이면서 이면서 ri가 빈 문자열일 경우, rb의 오른쪽에 붙은 "0"들을 모두 지웁니다, |
|---|
| 2350 | {{{#!if !ps |
|---|
| 2351 | {{{#!if (rp>9)&&(rb.substr(rp-9,9)=="000000000") |
|---|
| 2352 | {{{#!if this.rb=rb.substr(0,rp-9), rp-=9 |
|---|
| 2353 | }}}}}} |
|---|
| 2354 | {{{#!if (rp>4)&&(rb.substr(rp-4,4)=="0000") |
|---|
| 2355 | {{{#!if this.rb=rb.substr(0,rp-4), rp-=4 |
|---|
| 2356 | }}}}}} |
|---|
| 2357 | {{{#!if (rp>2)&&(rb.substr(rp-2,2)=="00") |
|---|
| 2358 | {{{#!if this.rb=rb.substr(0,rp-2), rp-=2 |
|---|
| 2359 | }}}}}} |
|---|
| 2360 | {{{#!if (rp>2)&&(rb.substr(rp-2,2)=="00") |
|---|
| 2361 | {{{#!if this.rb=rb.substr(0,rp-2), rp-=2 |
|---|
| 2362 | }}}}}} |
|---|
| 2363 | {{{#!if (rp>1)&&(rb.substr(rp-1,1)=="0") |
|---|
| 2364 | {{{#!if this.rb=rb.substr(0,rp-1), rp-=1 |
|---|
| 2365 | }}}}}}}}} |
|---|
| 2366 | }}} |
|---|
| 2367 | |
|---|
| 2368 | ts인 경우 rb, ri의 오른쪽 부분을 정리하지 않고 rp를 39로 정의합니다. |
|---|
| 2369 | {{{#!if ts |
|---|
| 2370 | {{{#!if rp=39 |
|---|
| 2371 | }}}}}} |
|---|
| 2372 | |
|---|
| 2373 | |
|---|
| 2374 | |
|---|
| 2375 | rb 정리를 이것으로 종료합니다. |
|---|
| 2376 | |
|---|
| 2377 | ##== 오류 코드 == |
|---|
| 2378 | error |
|---|
| 2379 | 1 : 오버플로 |
|---|
| 2380 | 2 : 언더플로 (사용하지 않음) |
|---|
| 2381 | 3 : 0으로 나눌 수 없음 |
|---|
| 2382 | 4 : 0으로 연산할 수 없음 (사용하지 않음) |
|---|
| 2383 | 5 : 이중 소수점 표기 |
|---|
| 2384 | 6 : 소수점 윗부분 오류 |
|---|
| 2385 | 7 : 소수점 아랫부분 오류 |
|---|
| 2386 | |
|---|
| 2387 | warning |
|---|
| 2388 | 1 : 소수점 아래 입력한 자릿수가 너무 많음 |
|---|
| 2389 | 2 : 소수점 아래 표시하는 자릿수를 제한함 (나눗셈) |
|---|
| 2390 | 3 : 소수점 아래 표시되는 자릿수가 너무 많음 (사용하지 않음) |
|---|
| 2391 | |
|---|
| 2392 | ##== 아래 출력 변수 설명 == |
|---|
| 2393 | '''sa''' : searching a (logical); '''sb''' : searching b (logical); '''sf''' : searching f (logical); |
|---|
| 2394 | '''ps''' : pass (logical); |
|---|
| 2395 | '''ad''' : "a" decimal point of string variable 'ma' (integer); |
|---|
| 2396 | '''bd''' : "b" decimal point of string variable 'mb' (integer); |
|---|
| 2397 | '''md''' : displaying mode number (string→integer); '''ms''' : message for correction (string) |
|---|
| 2398 | '''tm''' : temporary string, or transaction message (string); '''tn''' : temporary string 2 (string); |
|---|
| 2399 | '''tx''' : temporary value 1 (integer); '''ty''' : temporary value 2 (integer); '''tz''' : temporary value 3 (integer); |
|---|
| 2400 | '''comment''' : comment (string); |
|---|
| 2401 | ru는 계산결과에서 소수점 위 자리이므로, dot(.)이 나오지 않습니다. |
|---|
| 2402 | ##== 출력 부분 == |
|---|
| 2403 | ##=== 계산값 출력 (정상 출력) === |
|---|
| 2404 | }}}{{{#!wiki style="font-weight: 300; font-size: 17.5px;" |
|---|
| 2405 | {{{#!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="" |
|---|
| 2406 | }}}{{{#!if !(sa&sb&sf) |
|---|
| 2407 | {{{#!if !sa||!sb |
|---|
| 2408 | 변수 {{{#!if !sa |
|---|
| 2409 | a{{{#!if !sb |
|---|
| 2410 | 와 변수 }}}}}}{{{#!if !sb |
|---|
| 2411 | b}}}}}}{{{#!if !sf |
|---|
| 2412 | {{{#!if !sa&!sb |
|---|
| 2413 | , 그리고 }}}{{{#!if !sa^!sb |
|---|
| 2414 | 와 }}}연산자 f}}}를 입력하세요...}}}{{{#!if sa&&sb&&sf |
|---|
| 2415 | {{{#!if (ea==0)&&(eb==0) |
|---|
| 2416 | {{{#!if as[0]!=45 |
|---|
| 2417 | @a@}}}{{{#!if as[0]==45 |
|---|
| 2418 | (@a@)}}} {{{#!if as.length>=20 |
|---|
| 2419 | [br]}}}@f@ {{{#!if bs[0]!=45 |
|---|
| 2420 | @b@}}}{{{#!if bs[0]==45 |
|---|
| 2421 | (@b@)}}} {{{#!if (ma!=as)||(mb!=bs)||(+md==3)||(+md==4) |
|---|
| 2422 | {{{#!if (as.length+bs.length>=30) |
|---|
| 2423 | [br]}}}→ {{{#!if ms=ma, ad!=-1 |
|---|
| 2424 | {{{#!if ms=ma.substr(0,ad) |
|---|
| 2425 | }}}}}}{{{#!if ps=false, ms[0]==45 |
|---|
| 2426 | {{{#!if ms=ms.substr(1), ps=true |
|---|
| 2427 | }}}}}}{{{#!if (+md==3)||(+md==4) |
|---|
| 2428 | {{{#!if tx=ms.length, ty=tx/(+md), tz=tx%(+md), tn=ms, tz>0 |
|---|
| 2429 | {{{#!if tm=tn.substr(0,tz), tn=tn.substr(tz) |
|---|
| 2430 | }}}}}}{{{#!if (ty>0)&&(tz>0) |
|---|
| 2431 | {{{#!if tm+="," |
|---|
| 2432 | }}}}}}{{{#!if ty-->0 |
|---|
| 2433 | {{{#!if tm+=tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2434 | }}}}}}{{{#!if ty-->0 |
|---|
| 2435 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2436 | }}}}}}{{{#!if ty-->0 |
|---|
| 2437 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2438 | }}}}}}{{{#!if ty-->0 |
|---|
| 2439 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2440 | }}}}}}{{{#!if ty-->0 |
|---|
| 2441 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2442 | }}}}}}{{{#!if ty-->0 |
|---|
| 2443 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2444 | }}}}}}{{{#!if ms=tm |
|---|
| 2445 | }}}}}}{{{#!if ps |
|---|
| 2446 | (-}}}@ms@{{{#!if ad!=-1 |
|---|
| 2447 | {{{#!if ms=ma.substr(ad+1) |
|---|
| 2448 | }}}{{{#!if (+md==3)||(+md==4) |
|---|
| 2449 | {{{#!if tn=ms, tx=ms.length, ty=tx/(+md), tm=tn.substr(0,+md), tn=tn.substr(+md), ty-->0 |
|---|
| 2450 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2451 | }}}}}}{{{#!if ty-->0 |
|---|
| 2452 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2453 | }}}}}}{{{#!if ty-->0 |
|---|
| 2454 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2455 | }}}}}}{{{#!if ty-->0 |
|---|
| 2456 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2457 | }}}}}}{{{#!if ty-->0 |
|---|
| 2458 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2459 | }}}}}}{{{#!if ms=tm |
|---|
| 2460 | }}}}}}.@ms@}}}{{{#!if ps |
|---|
| 2461 | )}}} @f@ {{{#!if tm="", tn="", ms=mb, bd!=-1 |
|---|
| 2462 | {{{#!if ms=mb.substr(0,bd) |
|---|
| 2463 | }}}}}}{{{#!if ps=false, ms[0]==45 |
|---|
| 2464 | {{{#!if ms=ms.substr(1), ps=true |
|---|
| 2465 | }}}}}}{{{#!if (+md==3)||(+md==4) |
|---|
| 2466 | {{{#!if tx=ms.length, ty=tx/(+md), tz=tx%(+md), tn=ms, tz>0 |
|---|
| 2467 | {{{#!if tm=tn.substr(0,tz), tn=tn.substr(tz) |
|---|
| 2468 | }}}}}}{{{#!if (ty>0)&&(tz>0) |
|---|
| 2469 | {{{#!if tm+="," |
|---|
| 2470 | }}}}}}{{{#!if ty-->0 |
|---|
| 2471 | {{{#!if tm+=tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2472 | }}}}}}{{{#!if ty-->0 |
|---|
| 2473 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2474 | }}}}}}{{{#!if ty-->0 |
|---|
| 2475 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2476 | }}}}}}{{{#!if ty-->0 |
|---|
| 2477 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2478 | }}}}}}{{{#!if ty-->0 |
|---|
| 2479 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2480 | }}}}}}{{{#!if ty-->0 |
|---|
| 2481 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2482 | }}}}}}{{{#!if ms=tm |
|---|
| 2483 | }}}}}}{{{#!if ps |
|---|
| 2484 | (-}}}@ms@{{{#!if bd!=-1 |
|---|
| 2485 | {{{#!if ms=mb.substr(bd+1) |
|---|
| 2486 | }}}{{{#!if (+md==3)||(+md==4) |
|---|
| 2487 | {{{#!if tn=ms, tx=ms.length, ty=tx/(+md), tm=tn.substr(0,+md), tn=tn.substr(+md), ty-->0 |
|---|
| 2488 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2489 | }}}}}}{{{#!if ty-->0 |
|---|
| 2490 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2491 | }}}}}}{{{#!if ty-->0 |
|---|
| 2492 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2493 | }}}}}}{{{#!if ty-->0 |
|---|
| 2494 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2495 | }}}}}}{{{#!if ty-->0 |
|---|
| 2496 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2497 | }}}}}}{{{#!if ms=tm |
|---|
| 2498 | }}}}}}.@ms@}}}{{{#!if ps |
|---|
| 2499 | )}}} }}}{{{#!if (bs.length>=20)||(as.length+bs.length>=30) |
|---|
| 2500 | [br]}}}= @ns@{{{#!if comment="rs 표시 부분", ms=rs, tx=6%(+md), tm="", tn="", (+md==3)||(+md==4) |
|---|
| 2501 | {{{#!if comment="18자리를 md 자리만큼 떼었을 때 +md==4와 같이 모자라는 자릿수를 tx로 정의합니다.", tn=ms, ty=ms.length, tz=(ty-tx<0)?ty:(ty+tx)%(+md), ty=(ty+tx)/(+md), tz>0 |
|---|
| 2502 | {{{#!if tm+=tn.substr(0,tz), tn=tn.substr(tz), ty>0 |
|---|
| 2503 | {{{#!if tm+="," |
|---|
| 2504 | }}}}}}}}}{{{#!if ty-->0 |
|---|
| 2505 | {{{#!if tm+=tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2506 | }}}}}}{{{#!if ty-->0 |
|---|
| 2507 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2508 | }}}}}}{{{#!if ty-->0 |
|---|
| 2509 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2510 | }}}}}}{{{#!if ty-->0 |
|---|
| 2511 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2512 | }}}}}}{{{#!if ty-->0 |
|---|
| 2513 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2514 | }}}}}}{{{#!if ty-->0 |
|---|
| 2515 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2516 | }}}}}}{{{#!if ms=tm |
|---|
| 2517 | }}}}}}@ms@{{{#!if comment="rs의 값이 존재하고 끊는 단위로 떨어질 때 자릿수 구분 기호인 반점을 새깁니다.", ms=((rs!="")&&(18%(+md)==0))?",":"" |
|---|
| 2518 | }}}@ms@{{{#!if comment="ru 표시 부분", ms=ru, tm="", tn="", (+md==3)||(+md==4) |
|---|
| 2519 | {{{#!if tn=ms, ty=ms.length, tz=ty%(+md), ty=ty/(+md), tz>0 |
|---|
| 2520 | {{{#!if tm=tn.substr(0,tz), tn=tn.substr(tz) |
|---|
| 2521 | }}}}}}{{{#!if (ty>0)&&(tz>0) |
|---|
| 2522 | {{{#!if tm+="," |
|---|
| 2523 | }}}}}}{{{#!if ty-->0 |
|---|
| 2524 | {{{#!if tm+=tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2525 | }}}}}}{{{#!if ty-->0 |
|---|
| 2526 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2527 | }}}}}}{{{#!if ty-->0 |
|---|
| 2528 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2529 | }}}}}}{{{#!if ty-->0 |
|---|
| 2530 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2531 | }}}}}}{{{#!if ty-->0 |
|---|
| 2532 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2533 | }}}}}}{{{#!if ty-->0 |
|---|
| 2534 | {{{#!if tm+=","+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2535 | }}}}}}{{{#!if ms=tm |
|---|
| 2536 | }}}}}}@ms@{{{#!if +rp>0 |
|---|
| 2537 | ##rb string, decimal point marking |
|---|
| 2538 | .{{{#!if comment="rb 표시 부분", ms=rb, tm="", tn="", (+md==3)||(+md==4) |
|---|
| 2539 | {{{#!if tn=ms, ty=ms.length, ty=ty/(+md), tm=tn.substr(0,+md), tn=tn.substr(+md), ty-->0 |
|---|
| 2540 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2541 | }}}}}}{{{#!if ty-->0 |
|---|
| 2542 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2543 | }}}}}}{{{#!if ty-->0 |
|---|
| 2544 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2545 | }}}}}}{{{#!if ty-->0 |
|---|
| 2546 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2547 | }}}}}}{{{#!if ty-->0 |
|---|
| 2548 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2549 | }}}}}}{{{#!if ms=tm |
|---|
| 2550 | }}}}}}@ms@{{{#!if ri!="" |
|---|
| 2551 | {{{#!if comment="ri의 값이 존재하고 끊는 단위로 떨어질 때 자릿수를 매기고자 띄어쓰기를 넣습니다.", ms=(18%(+md)==0)?" ":"" |
|---|
| 2552 | }}}@ms@{{{#!if comment="ri 표시 부분", ms=ri, tm="", tn="", (+md==3)||(+md==4) |
|---|
| 2553 | {{{#!if comment="rs의 경우와 같이, md만큼 떼었을 때 rb에서 모자라는 자릿수를 먼저 끊어 표시합니다.", tn=ms, ty=ms.length, ty=(ty+tx-1)/(+md), tm=(tx>0)?tn.substr(0,tx):tn.substr(0,+md), tn=(tx>0)?tn.substr(tx):tn.substr(+md), ty>0 |
|---|
| 2554 | {{{#!if tm+=" " |
|---|
| 2555 | }}}}}}{{{#!if ty-->0 |
|---|
| 2556 | {{{#!if tm+=tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2557 | }}}}}}{{{#!if ty-->0 |
|---|
| 2558 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2559 | }}}}}}{{{#!if ty-->0 |
|---|
| 2560 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2561 | }}}}}}{{{#!if ty-->0 |
|---|
| 2562 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2563 | }}}}}}{{{#!if ty-->0 |
|---|
| 2564 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2565 | }}}}}}{{{#!if ty-->0 |
|---|
| 2566 | {{{#!if tm+=" "+tn.substr(0,+md), tn=tn.substr(+md) |
|---|
| 2567 | }}}}}}{{{#!if ms=tm |
|---|
| 2568 | }}}}}}@ms@{{{#!if (f=='/')&&ts |
|---|
| 2569 | ...}}}}}}}}}}}}}}}{{{#!if (ea>0)||(eb>0) |
|---|
| 2570 | ##=== 오류 · 경고 코드 출력 부분 === |
|---|
| 2571 | {{{#!if (ea==1)||(eb==1) |
|---|
| 2572 | '''{{{#orangered [오류]}}}''' 변수 {{{#!if ea==1 |
|---|
| 2573 | a{{{#!if eb==1 |
|---|
| 2574 | 와 }}}}}}{{{#!if eb==1 |
|---|
| 2575 | b}}}에 범위를 초과하는 값이 입력되었습니다. {{{#gray (오버플로)}}}{{{#!if ea!=eb |
|---|
| 2576 | [br]}}}}}}{{{#!if eb==3 |
|---|
| 2577 | '''{{{#orangered [오류]}}}''' 0으로 나눌 수 없습니다. {{{#gray (입력 오류)}}}{{{#!if ea!=eb |
|---|
| 2578 | [br]}}}}}}{{{#!if (ea==5)||(eb==5) |
|---|
| 2579 | '''{{{#orangered [오류]}}}''' 변수 {{{#!if ea==5 |
|---|
| 2580 | a{{{#!if eb==5 |
|---|
| 2581 | 와 }}}}}}{{{#!if eb==5 |
|---|
| 2582 | b}}}에 소수점이 2개 이상 입력되었습니다. {{{#gray (입력 오류)}}}}}}{{{#!if (ea==6)||(eb==6) |
|---|
| 2583 | '''{{{#orangered [오류]}}}''' 변수 {{{#!if ea==6 |
|---|
| 2584 | a의 소수점 윗자리{{{#!if eb==6 |
|---|
| 2585 | 와 }}}}}}{{{#!if eb==6 |
|---|
| 2586 | b의 소수점 윗자리}}}에 올바르지 않은 문구{{{#!if ps=(((ea==6)&&(eb==7))||((ea==7)&&(eb==6))), ps |
|---|
| 2587 | 가, }}}{{{#!if !ps |
|---|
| 2588 | 가 입력되었습니다. {{{#gray (입력 오류)}}}{{{#!if ea!=eb |
|---|
| 2589 | [br]}}}}}}}}}{{{#!if (ea==7)||(eb==7) |
|---|
| 2590 | {{{#!if !ps |
|---|
| 2591 | '''{{{#orangered [오류]}}}'''}}} 변수 {{{#!if ea==7 |
|---|
| 2592 | a의 소수점 아랫자리{{{#!if eb==7 |
|---|
| 2593 | 와 }}}}}}{{{#!if eb==7 |
|---|
| 2594 | b의 소수점 아랫자리}}}에 올바르지 않은 문구가 입력되었습니다. {{{#gray (입력 오류)}}}}}}}}}{{{#!if ((wa>0)||(wb>0))&&(((ea==0)&&(eb==0))||((wb==1)&&(eb==3))) |
|---|
| 2595 | {{{#!if (eb!=3)||((ea>3)&&(eb==3)) |
|---|
| 2596 | [br]}}}{{{#!wiki style="display: inline; text-shadow: 1px 1px 2px gray;" |
|---|
| 2597 | '''{{{#yellow [경고] }}}'''}}}{{{#!if (wa==1)||(wb==1) |
|---|
| 2598 | 변수 {{{#!if (wa==1)&&(ea==0) |
|---|
| 2599 | a{{{#!if (wb==1)&&(ea==0) |
|---|
| 2600 | 와 }}}}}}{{{#!if wb==1 |
|---|
| 2601 | b}}}의 소수점 아래에 입력한 문구가 너무 많습니다. 소수점 아래 19번째 자리부터 입력된 문구는 무시됩니다. |
|---|
| 2602 | }}}{{{#!if wb==2 |
|---|
| 2603 | 나누어 떨어지는 식이지만 소수점 아래 표시되는 자릿수가 너무 많아 표시를 제한합니다.}}}}}}}}}[include(틀:문서 가져옴/the seed, 위키=더시드위키, 문서명=틀:계산기2, uuid=0dea5b15-2160-474c-ab0c-f179bc5fad28, 버전=369)] |
|---|