r2622
r2597
1[[분류:냥]]
r2610
2
r2584
3{{{#!wiki style="font-weight: 300; font-size: 20px"
4{{{#!if 식 = '11+2'
r2597
5@식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0
r2593
6##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지.
r2594
7}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
r2593
8}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
r2594
9##숫자를 발견할 경우
r2591
10{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
r2595
11##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
r2591
12}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
13##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
r2592
14##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다.
r2597
15{{{#!if s2==false
16##정수 자리를 기입하는 경우
r2595
17{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
r2597
18}}}}}}{{{#!if s2==true
19##소수점 아래 자리를 기입하는 경우
20{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
21}}}{{{#!if k+=1
22##다음 소수점 자리 찾기
r2602
23}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2605
24##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함)
r2597
25{{{#!if s2=true, s3=true, k=1+0
26##switch2 : 켜기
r2607
27}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false)
28##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함)
r2591
29{{{#!if j+=1, s1=false, s2=false, s3=true
r2592
30##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김.
r2597
31}}}{{{#!if s3==true
32##여기까지 과정을 거쳤다면 스위치 off.
33{{{#!if s3=false
34}}}}}}
35}}}{{{#!if i+=1
r2594
36}}}
r2595
37##
r2599
38{{{#!if false
r2600
39##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기.
r2599
40{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
41}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
42{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
43}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
44{{{#!if s2==false
45{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
46}}}}}}{{{#!if s2==true
47{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
48}}}{{{#!if k+=1
r2603
49}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2599
50{{{#!if s2=true, s3=true, k=1+0
r2604
51}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false)
r2599
52{{{#!if j+=1, s1=false, s2=false, s3=true
53}}}{{{#!if s3==true
54{{{#!if s3=false
55}}}}}}
56}}}{{{#!if i+=1
57}}}
58####
59}}}
60##
r2600
61{{{#!if this['v1'] == 1
62this['v1'] == 1}}}
63##
64{{{#!if s3=false
65}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
66}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
67{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
68}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
69{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
70}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
71{{{#!if s2=true, s3=true
72}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
73{{{#!if j+=1, s1=false, s2=false, s3=true
74}}}}}}{{{#!if i+=1
75}}}
76##
r2595
77{{{#!if this['v1'] == 11
78this['v1'] == 11}}}
79##
r2596
80{{{#!if s3=false
81}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
82}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
83{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
84}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
85{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
86}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
87{{{#!if s2=true, s3=true
88}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
89{{{#!if j+=1, s1=false, s2=false, s3=true
90}}}}}}{{{#!if i+=1
91}}}{{{#!if s3=false
92}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
93}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
94{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
95}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
96{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
97}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
98{{{#!if s2=true, s3=true
99}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
100{{{#!if j+=1, s1=false, s2=false, s3=true
101}}}}}}{{{#!if i+=1
102}}}
r2595
103##
r2596
104{{{#!if this['v2'] == 2
105this['v2'] == 2}}}
r2595
106##
107##
108##
109##
r2593
110{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2586
111}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
112}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2584
113}}}
r2593
114
r2586
115## 식 검증이 됐다 치면
r2587
116## dn : true - 수 / false - 연산자
r2586
117{{{#!if this['d0']
1181}}}{{{#!if this['d1']
1191}}}{{{#!if !this['d2']
120+}}}{{{#!if this['d3']
r2585
1212}}}
r2587
122## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산
123## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ..
124{{{#!if i = 1, j = 1, i0 = 0
125}}}
r2584
126
r2587
127{{{#!if t = this['d0'] != this['d1'], t
128{{{#!if this['i'+i] = j, j+=1, i+=1
129}}}}}}{{{#!if !t
130{{{#!if j+=1
131}}}}}}{{{#!if t = this['d1'] != this['d2'], t
132{{{#!if this['i'+i] = j, j+=1, i+=1
133}}}}}}{{{#!if !t
134{{{#!if j+=1
135}}}}}}{{{#!if t = this['d1'] != this['d2'], t
136{{{#!if this['i'+i] = j, j+=1, i+=1
137}}}}}}{{{#!if !t
138{{{#!if j+=1
r2585
139}}}}}}
r2584
140
r2608
141## {{{#!if i0 == 0
142## i0 == 0 }}}{{{#!if i1 == 2
143## i1 == 2 }}}{{{#!if i2 == 3
144## i2 == 3 }}}
r2587
145
146
147## {{{#!if list = [d0, d1, d2, d3]
148## }}}
149}}}
r2585
150[include(틀:계산기2, r=13)]
r2582
151##생각해보니까 그냥 r을 지정할 수도 있겠구나
152
r2571
153[include(틀:계산기, a=123456789, f=+, b=1)]
154[include(틀:계산기, a=123456789, f=-, b=1)]
155[include(틀:계산기, a=123459, f=*, b=2)]
156[include(틀:계산기, a=123459, f=/, b=2)]
r2569
157
r2572
158[include(틀:계산기2, a=10, f=/, b=3)]
r2573
159[include(틀:계산기2, a=-5, f=/, b=200)]
160[include(틀:계산기2, a=-5, f=*, b=200)]
r2574
161[include(틀:계산기2, a=123459, f=/, b=2)]
r2575
162[include(틀:계산기2, a=12345, f=-, b=67890)]
r2579
163[include(틀:계산기2, a=-1, f=*, b=-5)]
r2583
164[include(틀:계산기2, a=-3, f=/, b=7)]
r2577
165[include(틀:계산기2, a=1.1, f=+, b=0.1)]
r2578
166아직은 소수끼리의 계산은 되지 않는 모양이다. (사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)
r2569
167
r2560
168{{{#!if json={'a':'b', 'c':'d'}
169json={'a':'b', 'c':'d'}[br]
170}}}{{{#!if json['a'] == 'b'
171json['a'] == 'b'[br]
172}}}{{{#!if list = ['a', 'b']
173list = ['a', 'b'][br]
174}}}{{{#!if list[1] == 'b'
175list[1] == 'b'[br]
176}}}
177
r2568
178[[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다.
r2559
179[[냥#]] < 볼드체
180[[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님
r2557
181[[문서:냥]] < 볼드체아님
r2560
182
r2558
183== ㅁㄴㅇㄹ ==
r2128
184[include(a)]''''''[include(a)][include(a)]
r2130
185[[]][include(a)][include(a)][include(a)]
r2127
186
r2111
187{{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px"
r2105
188||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>||
189
r2109
190||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>||
191||<colbgcolor=#000>||
r2108
192||<tan>||
r2106
193
r2107
194||<tablealign=center><tablewidth=100%><bgcolor=#000>||
195
196||<tablealign=center><tablewidth=100%>||}}}
r2095
197Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok
r2096
198Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok
r2104
199\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
200[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
r2075
201----
r2104
202\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
203[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
r2075
204----
r2104
205\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
206[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
r2075
207----
r2104
208\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
209[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
r2077
210----
r2104
211\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
212[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
r2075
213----
r2104
214\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
215[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
r2075
216----
r2104
217\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
218[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
r2075
219----
r2104
220\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
221[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
r2076
222----
r2068
223\[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
r2062
224[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
r2075
225----
r2068
226\[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
r2064
227[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
r2068
228\[include(틀:isuuid, uuid=냥)]
229[include(틀:isuuid, uuid=냥)]
r2580
230[include(틀:ㅁ, str=Hello\, World!)]
231toString() 가능
232parseInt() x