| r210 vs r211 | ||
|---|---|---|
| ... | ... | |
| 9 | 9 | '''ad''' : "a" decimal point (integer); '''bd''' : "b" decimal point (integer); |
| 10 | 10 | '''au''' : --gold-- "a" upper value (string→integer); '''bu''' : "b" upper value (string→integer); |
| 11 | 11 | '''ab''' : "a" below value (string→integer); '''bb''' : "b" below value (string→integer); |
| 12 | '''ap''' : "a" # of places of decimal (for addition or subtraction) | |
| 13 | '''bp''' : "b" # of places of decimal (for addition or subtraction) | |
| 12 | '''ap''' : "a" # of places of decimal (for addition or subtraction); | |
| 13 | '''ac''' : the value above the demical point of '''c'''ommon logarithm of a (for multiplication or division) (integer); | |
| 14 | '''bp''' : "b" # of places of decimal (for addition or subtraction); | |
| 15 | '''bc''' : the value above the demical point of '''c'''ommon logarithm of b (for multiplication or division) (integer); | |
| 14 | 16 | 0.303과 0.0303은 다른 수이므로 자리수가 다름을 표시할 용도 |
| 15 | 17 | '''ru''' : "result" upper value (integer→string); '''rb''' : "result" below value (integer→string); |
| 16 | 18 | '''rp''' : "result" # of places of decimal (integer); |
| 17 | 19 | '''rs''' : "result" suprerior value (integer→string); '''ri''' : "result" inferior value (integer→string); |
| 18 | '''i''' : index; '''tv''' temporary value 1 (integer); '''tw''' temporary value 2 (integer); | |
| 20 | '''i''' : index; '''tu''' : temporary value 0 (integer); '''tv''' : temporary value 1 (integer); '''tw''' : temporary value 2 (integer); '''tx''' : temporary value 3 (integer); '''ty''' : temporary value 4 (integer); | |
| 19 | 21 | '''ps''' : pass (logical); '''ts''' : --not about gender-- test (logical) |
| 20 | 22 | '''ea''' : error about "a"; '''eb''' : error about "b"; |
| 21 | 23 | '''wa''' : warning about "a" ; '''wb''' : warning about "b" ; |
| 22 | 24 | '''ns''' : negative sign for multiplication and division (string); |
| 23 | {{{#!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.tv=1, this.tw=0, this.ea=0+0, this.eb=0+0, this.wa=0+0, this.wb=0+0, this.ps=false, ns="" | |
| 25 | {{{#!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, 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, ns="" | |
| 24 | 26 | }}}{{{#!if this.al=as.length, this.bl=bs.length, this.ad=as.indexOf("."), this.bd=bs.indexOf(".") |
| 25 | 27 | }}}{{{#!if ad!=-1 |
| 26 | 28 | 소수점이 발견되는 자리 번호가 ad이므로 ad+1번에 해당되는 자리부터 끝까지 표기합니다. |
| ... | ... | |
| 321 | 323 | 곱셈과 나눗셈에서 a와 b 모두 0이 아닌 경우를 봅니다. |
| 322 | 324 | {{{#!if ((+au!=0)||(+ab!=0))&&((+bu!=0)||(+bb!=0)) |
| 323 | 325 | |
| 324 | 나눗셈 자리를 계산할 목적으로 a | |
| 325 | ||
| 326 | 나눗셈 자리를 계산할 목적으로 ac, bc 값을 (상용로그 값으로서) 계산할 숫자의 자릿수로 다시 정의합니다. | |
| 326 | 327 | {{{#!if +bu==0 |
| 327 | {{{#!if b | |
| 328 | {{{#!if bc=-bp | |
| 328 | 329 | }}}}}}{{{#!if +bu!=0 |
| 329 | {{{#!if b | |
| 330 | {{{#!if bc=+bu.length | |
| 330 | 331 | }}}}}} |
| 331 | 332 | |
| 332 | ap는 0이 아닌 수가 적힌 가장 높은 자릿수의 번호로 다시 정의합니다. 소수점 위 18자리가 해당된다면 1로 정의하며, 소수점 아래로 내려가면 18을 더하고 소수점 아래에서 처음으로 0이 아닌 수가 나오게 되는 자리만큼을 더합니다. | |
| 333 | 333 | {{{#!if +au!=0 |
| 334 | {{{#!if a | |
| 334 | {{{#!if ac=-ap | |
| 335 | 335 | }}}}}}{{{#!if au==0 |
| 336 | {{{#!if a | |
| 336 | {{{#!if ac=+au.length | |
| 337 | 337 | }}}}}} |
| 338 | 338 | |
| 339 | 339 | 18자리씩 곱셈계산을 할 수 있도록 입력했던 a와 b의 문자열을 확장할 것입니다. |
| ... | ... |