r2590 vs r2591
11
{{{#!wiki style="font-weight: 300; font-size: 20px"
22
{{{#!if 식 = '11+2'
3
@식=11+2@}}} = {{{#!if sw=false, v=1+0
4
##switch
3
@식=11+2@}}} = {{{#!if s1=false, s2=false, j=1+0
4
##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지, switch3 : 소수점 아래 기입하기.
55
}}}{{{#!if i = 0
66
}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
7
{{{#!if sw==false&&this['d'+i]
8
}}}
7
{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
8
##숫자를 발견할 경우
9
{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
10
##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다.
11
}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
12
##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
13
{{{#!if this['v'+j] = 10*this['v'+j]+(식.substr(i,1)), s3=true
14
}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
15
##숫자를 계속 발견할 경우 (여기서는 소수점일 경우)
16
{{{#!if s2=true, s3=true
17
}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
18
##숫자가 더 이상 나오지 않을 경우
19
{{{#!if j+=1, s1=false, s2=false, s3=true
20
##다음 index(j) 매김.
21
}}}}}}
922
}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
1023
}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
1124
}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
......