r216 vs r217
......
1818
'''rp''' : "result" # of places of decimal (integer);
1919
'''rs''' : "result" suprerior value (integer→string); '''ri''' : "result" inferior value (integer→string);
2020
'''i''' : index; '''tu''' : temporary value 1 (integer); '''tv''' : temporary value 2 (integer); '''tw''' : temporary value 3 (integer); '''tx''' : temporary value 4 (integer); '''ty''' : temporary value 5 (integer);
21
'''ps''' : pass (logical); '''ts''' : --not about gender-- test (logical)
21
'''ps''' : pass (logical); '''ts''' : --not about gender-- test (logical) ; '''br''' : break (logical);
2222
'''ea''' : error about "a"; '''eb''' : error about "b";
2323
'''wa''' : warning about "a" ; '''wb''' : warning about "b" ;
2424
'''ns''' : negative sign for multiplication and division (string);
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=""
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, this.ts=false, this.br=false, ns=""
2626
}}}{{{#!if this.al=as.length, this.bl=bs.length, this.ad=as.indexOf("."), this.bd=bs.indexOf(".")
2727
}}}{{{#!if ad!=-1
2828
소수점이 발견되는 자리 번호가 ad이므로 ad+1번에 해당되는 자리부터 끝까지 표기합니다.
......
9595
9696
(반점(,)을 자동적으로 생략하고 들어가는 것은 나중에 생각하겠습니다.)
9797
{{{#!if false
98
ps와 test 변수를 이용합니다.
99
{{{#!if test=((a!=null)||(a!="")), break=false
100
}}}{{{#!if !test&&!break
101
{{{#!if break=true
102
}}} 값을 입력했경우}}}{{{#!if test&&!break
103
}}}빈 값이 아닌 경우{{{#!if as=a.toString(), ad=as.indexOf("."), test=(ad==as.lastIndexOf(".")), au=as.substr(0,ad)
98
br와 ts 변수를 이용하여 순차적으로 검사를 진행합니다. 도중 문제가 있으면 (br를 true로 반환하고) 오류 코드를 내도록 만듭니다.
99
{{{#!if ts=((au[0]!=45)&&(au.length<=18))||((au[0]==45)&&(au.length<=19))
100
}}}{{{#!if !ts&&!br
101
{{{#!if br=true, ea=1
102
}}}}}}
103
소수점 윗자릿수가 넘치면 오류코드 1번반환합니다.
104
{{{#!if ts&&!br
105
{{{#!if ts=(as.indexOf(".")==as.lastIndexOf("."))
106
}}}}}}{{{#!if !ts&&!bk
107
{{{#!if br=true, ea=5
108
}}}}}}
109
소수점을 2개 이상 입력하면 오류코드 5번을 반환합니다.
110
{{{#!if ts&&!br
104111
}}}
105112
{{{#!if !test&&!break
106113
{{{#!if break=true
107
}}}온점을 2개 이상 입력했을 경우}}}{{{#!if test&&!break
108
온점이 1개 이하인 경우{{{#!if test=((au[0]!=45)&&(au.length<=18))||((au[0]==45)&&(au.length<=19))
109
}}}}}}
110
{{{#!if !test&&!break
111
{{{#!if break=true
112114
}}}자릿수가 넘은 경우}}}{{{#!if test&&!break
113115
자릿수가 넘지 않은 경우{{{#!if this.testtext=au
114116
}}}{{{#!if rest=(au[0]==45), rest
......
122124
입력하신 문구에서 소수점 윗부분은 숫자가 맞는 경우{{{#!if ab=as.substr(ad+1, as.length-ad-1)
123125
}}}}}}
124126
}}}
125
error code 02 번 : 입력한 변수는 숫자로 읽을 수 없습니다. 반점(,)을 입력했다면 반점을 지우고 다시 입력하세요.
127
error code 05~ : 입력한 변수는 숫자로 읽을 수 없습니다.
128
* 5번 : 반점(,)을 입력했다면 반점을 지우고 다시 입력하세요.
126129
127130
error code 03 번 : 0으로 나눌 수 없습니다.(아래쪽 참고)
128131
......