r2683
r2597
1[[분류:냥]]
r2683
2{{{#!if ap=5, tv=1, i=0+0
3}}}{{{#!wiki style="display:none"
4{{{#!if tv=+("1000000000000000000".substr(0,ap+1))
5}}}
6## {{{#!if i<ap
7## {{{#!if tv=10*tv, i+=1
8## }}}}}}
9## {{{#!if i<ap
10## {{{#!if tv=10*tv, i+=1
11## }}}}}}
12## {{{#!if i<ap
13## {{{#!if tv=10*tv, i+=1
14## }}}}}}
15## {{{#!if i<ap
16## {{{#!if tv=10*tv, i+=1
17## }}}}}}
18## {{{#!if i<ap
19## {{{#!if tv=10*tv, i+=1
20## }}}}}}
21
22## {{{#!if i<ap
23## {{{#!if tv=10*tv, i+=1
24## }}}}}}
25## {{{#!if i<ap
26## {{{#!if tv=10*tv, i+=1
27## }}}}}}
28## {{{#!if i<ap
29## {{{#!if tv=10*tv, i+=1
30## }}}}}}
31## {{{#!if i<ap
32## {{{#!if tv=10*tv, i+=1
33## }}}}}}
34## {{{#!if i<ap
35## {{{#!if tv=10*tv, i+=1
36## }}}}}}
37
38## {{{#!if i<ap
39## {{{#!if tv=10*tv, i+=1
40## }}}}}}
41## {{{#!if i<ap
42## {{{#!if tv=10*tv, i+=1
43## }}}}}}
44## {{{#!if i<ap
45## {{{#!if tv=10*tv, i+=1
46## }}}}}}
47## {{{#!if i<ap
48## {{{#!if tv=10*tv, i+=1
49## }}}}}}
50## {{{#!if i<ap
51## {{{#!if tv=10*tv, i+=1
52## }}}}}}
53
54## {{{#!if i<ap
55## {{{#!if tv=10*tv, i+=1
56## }}}}}}
57## {{{#!if i<ap
58## {{{#!if tv=10*tv, i+=1
59## }}}}}}
60## {{{#!if i<ap
61## {{{#!if tv=10*tv, i+=1
62## }}}}}}
63}}}
64{{{#!if tv+=1
65int
66}}}
67@tv@
68
r2682
69{{{#!if ap=5, bp=0, bb=""
70}}}{{{#!if ap-bp>=9
71{{{#!if bp+=9, bb=bb+"000000000"
72}}}}}}{{{#!if ap-bp>=4
73{{{#!if bp+=4, bb=bb+"0000"
74}}}}}}{{{#!if ap-bp>=2
75{{{#!if bp+=2, bb=bb+"00"
76}}}}}}{{{#!if ap-bp>=2
77{{{#!if bp+=2, bb=bb+"00"
78}}}}}}{{{#!if ap-bp>=1
79{{{#!if bp+=1, bb=bb+"0"
80}}}}}}
81@ap@ @bp@
82{{{#!if bl = bb.length
83}}}@bl@자
84----
85{{{#!if ap=5, bp=0, bb=""
86}}}{{{#!if ap>bp
87{{{#!if bp=ap, bb+="000000000000000000"
88}}}{{{#!if bb=bb.substr(0,ap)
89}}}}}}
90@ap@ @bp@
91{{{#!if bl = bb.length
92}}}@bl@자
93##
r2662
94||<#fff"> <#fff'''{{{#red \"}}}'''>왜 문제가 없지 ||
r2629
95##
96folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동.
97다만 dark-style은 꼭 "-"만 사용 가능.
98if, syntax는 띄어쓰기 없을 시 에러.
99##
r2624
100== 문단 ==
r2671
101{{{#!folding 계산기 테스트
r2636
102{{{-5
r2643
103[include(틀:계산기2, a=1.1, f=-, b=-1.2)]
r2637
104[include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)]
r2636
105[include(틀:계산기2, a=., f=-, b=-.)]
106[include(틀:계산기2, a=-, f=+, b=-)]
107[include(틀:계산기2, a=10, f=/, b=3)]
r2624
108[include(틀:계산기2, a=-5, f=/, b=200)]
109[include(틀:계산기2, a=-5, f=*, b=200)]
110[include(틀:계산기2, a=123459, f=/, b=2)]
111[include(틀:계산기2, a=12345, f=-, b=67890)]
r2630
112[include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)]
r2632
113[include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)]
r2639
114[include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)]
r2624
115[include(틀:계산기2, a=-1, f=*, b=-5)]
116[include(틀:계산기2, a=-3, f=/, b=7)]
r2633
117[include(틀:계산기2, a=1.1, f=+, b=0.1)]
r2634
118[include(틀:계산기2, a=1.123, f=+, b=0.877)]
119[include(틀:계산기2, a=1.123, f=+, b=0.878)]
r2635
120[include(틀:계산기2, a=1.333, f=-, b=4.354)]
r2638
121[include(틀:계산기2, a=7.89, f=-, b=12.345)]
r2640
122[include(틀:계산기2, a=1, f=-, b=0.000000000000000001)]
123[include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)]}}}
r2671
124아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)}}}
r2624
125
126{{{#!if json={'a':'b', 'c':'d'}
127json={'a':'b', 'c':'d'}[br]
128}}}{{{#!if json['a'] == 'b'
129json['a'] == 'b'[br]
130}}}{{{#!if list = ['a', 'b']
131list = ['a', 'b'][br]
132}}}{{{#!if list[1] == 'b'
133list[1] == 'b'[br]
134}}}
135
136[[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다.
137[[냥#]] < 볼드체
138[[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님
139[[문서:냥]] < 볼드체아님
140
141[include(틀:계산기, r=13)]
142\[include(틀:계산기, r=13)]
143생각해보니까 그냥 r을 지정할 수도 있겠구나
144[include(틀:계산기, a=123456789, f=+, b=1)]
145[include(틀:계산기, a=123456789, f=-, b=1)]
146[include(틀:계산기, a=123459, f=*, b=2)]
147[include(틀:계산기, a=123459, f=/, b=2)]
r2646
148== 그래프구상 ==
149{{{#!if i=0, x=0
r2648
150}}}<math>x^2</math>
r2646
151{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
152}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
153}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
154}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
155}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
156}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
157}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
158}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
159}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
160}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
161}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
162}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
163}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
164}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
165}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
166}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
167}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
168}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
169}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
170}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
171}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
172}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
r2652
173}}}{{{#!if true
r2669
174#tk : thickness (px) ; wd : width (px)
175{{{#!if tk=1+0.0, color="#666", wd=10+0.0
176}}}}}}{{{#!if tk=(+tk)/2, tk=tk.toString(), dis="display: inline-table; background: linear-gradient", rb="to right bottom", rt="to right top", tp="transparent", c1="calc(50% - "+tk+"px)", c2="calc(50% + "+tk+"px)", c3=tp+" "+c1+", "+color+" "+c1+" "+c2+", "+tp+" "+c2, hg="height: ", wd=wd.toString(), wdx="width: "+wd+"px", vag="vertical-align: calc"
r2646
177}}}
r2669
178{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)"
179}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);"
180}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);"
r2670
181}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y4@px; @wdx@; @vag@(@v4@px + @tk@px);"
182}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y5@px; @wdx@; @vag@(@v5@px + @tk@px);"
183}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y6@px; @wdx@; @vag@(@v6@px + @tk@px);"
184}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y7@px; @wdx@; @vag@(@v7@px + @tk@px);"
185}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y8@px; @wdx@; @vag@(@v8@px + @tk@px);"
186}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y9@px; @wdx@; @vag@(@v9@px + @tk@px);"
187}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y10@px; @wdx@; @vag@(@v10@px + @tk@px)"
188}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y11@px; @wdx@; @vag@(@v11@px + @tk@px)"
189}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y12@px; @wdx@; @vag@(@v12@px + @tk@px)"
190}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y13@px; @wdx@; @vag@(@v13@px + @tk@px)"
191}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y14@px; @wdx@; @vag@(@v14@px + @tk@px)"
r2646
192}}}
r2624
193
r2657
194== 나무나무마크구상 ==
r2681
195 * 할거 > 분류
r2680

(r2677으로 되돌림)
196## \{{{#!html <div style="clear: both"/>}}}
197## == clearfix
198input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}}
199{{{#!wiki style="display: none"
200{{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥'
r2657
201}}}
r2680

(r2677으로 되돌림)
202{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
203}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
r2674
204}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
205}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
206## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
207 {{{#!if divider = linkRaw.indexOf('|')
208 }}}{{{#!if divider == -1
209##[[링크]]
210 {{{#!if href = linkRaw.substring(2, linkRaw.length-2)
211 }}}
212 }}}{{{#!if divider != -1
213 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
214 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
215##[[|]] > 출력 x
216 }}}
217 }}}
218 {{{#!if (divider == 2) && !break
219 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
220##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
221 }}}
222 }}}
223 {{{#!if (divider+1 == linkRaw.length-2) && !break
224##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
225 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
226 @linkPrint@
227 @href@
228 }}}
229 }}}
230 {{{#!if !break
231 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
232 }}}
233 }}}
234 }}}
235 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
r2680

(r2677으로 되돌림)
236 {{{#!if linkColor = 'none', outLink = 'asdf'
r2674
237 }}}
238 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
239## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
240 }}}{{{#!if !(isCategory || isLink)
241 {{{#!if href = 'https://theseed.io/w/'+href
242 }}}
r2680

(r2677으로 되돌림)
243 }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2)
r2674
244 }}}
r2657
245}}}
r2680

(r2677으로 되돌림)
246###########
247{{{#!if h=null,a=null,b=false,c='#0275d8',d=''
248}}}{{{#!if e=input.indexOf('[['),x=input.indexOf(']]')
249}}}{{{#!if z=input.substring(e,x+2)
250}}}{{{#!if e!=-1&&x!=-1&&e+2<x
251{{{#!if g=z.indexOf('|')
252}}}{{{#!if g==-1
253{{{#!if h=z.substring(2,z.length-2)
254}}}}}}{{{#!if g!=-1
255{{{#!if (g==2)&&(g+1==z.length-2)
256{{{#!if b=true,input=input.substring(0,e)+input.substring(x+2)
257}}}}}}{{{#!if (g==2)&&!b
258{{{#!if b=true,h=z.substring(g+1,z.length-2),a=h
259}}}}}}{{{#!if (g+1==z.length-2)&&!b
260{{{#!if b=true,h=z.substring(2,g),a=h
261}}}}}}{{{#!if !b
262{{{#!if h=z.substring(2,g),a=z.substring(g+1,z.length-2)
263}}}}}}}}}{{{#!if isLink=(h.startsWith('https://')||h.startsWith('http://')||h.startsWith('ftp://')),isLink
264{{{#!if c='none',d='asdf'
265}}}}}}{{{#!if isCategory=(h.startsWith('분류:')),isCategory
266}}}{{{#!if !(isCategory||isLink)
267{{{#!if h='https://theseed.io/w/'+h
268}}}}}}{{{#!if input=input.substring(0,e)+'<div style="display:inline-table"><div style="overflow:hidden"><div style="margin-left:-1.2em'+d+'"><a href="'+h+'"><div style="color:'+c+';display:inline">'+a+'</div></a></div></div></div>'+input.substring(x+2)
269}}}}}}
270}}}
271output: {{{#!html @input@}}}
r2681
272
273== 나무나무마크구상2 ==
274할거 : wiki/darkstyle/+/-/#fff
275리터럴귀찮음 if folding syntax는 될리가없음
276input=냥\{\{\{#!html \{\{\{#html \}\}\}냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}
277##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ
278
279{{{#!wiki style="display: none"
280{{{#!if input='냥\{\{\{#!html \{\{\{#html \}\}\}냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}'
281}}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
282 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
283 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
284 }}}
285 {{{#!if _ParOpen == -1
286 {{{#!if Match=true
287 }}}
288 }}}{{{#!if _ParOpen != -1
289 {{{#!if ParOpen=_ParOpen
290 }}}
291 }}}
292############################
293 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
294 }}}
295 {{{#!if _ParOpen == -1
296 {{{#!if Match=true
297 }}}
298 }}}{{{#!if _ParOpen != -1
299 {{{#!if ParOpen+=_ParOpen+3
300 }}}
301 }}}
302############################
303 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
304 }}}
305 {{{#!if _ParOpen == -1
306 {{{#!if Match=true
307 }}}
308 }}}{{{#!if _ParOpen != -1
309 {{{#!if ParOpen+=_ParOpen+3
310 }}}
311 }}}
312 }}}
313 {{{#!if Match
314 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
315 }}}
316 }}}
317}}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
318 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
319 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
320 }}}
321 {{{#!if _ParOpen == -1
322 {{{#!if Match=true
323 }}}
324 }}}{{{#!if _ParOpen != -1
325 {{{#!if ParOpen=_ParOpen
326 }}}
327 }}}
328############################
329 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
330 }}}
331 {{{#!if _ParOpen == -1
332 {{{#!if Match=true
333 }}}
334 }}}{{{#!if _ParOpen != -1
335 {{{#!if ParOpen+=_ParOpen+3
336 }}}
337 }}}
338############################
339 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
340 }}}
341 {{{#!if _ParOpen == -1
342 {{{#!if Match=true
343 }}}
344 }}}{{{#!if _ParOpen != -1
345 {{{#!if ParOpen+=_ParOpen+3
346 }}}
347 }}}
348 }}}
349 {{{#!if Match
350 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
351 }}}
352 }}}
353}}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
354 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
355 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
356 }}}
357 {{{#!if _ParOpen == -1
358 {{{#!if Match=true
359 }}}
360 }}}{{{#!if _ParOpen != -1
361 {{{#!if ParOpen=_ParOpen
362 }}}
363 }}}
364############################
365 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
366 }}}
367 {{{#!if _ParOpen == -1
368 {{{#!if Match=true
369 }}}
370 }}}{{{#!if _ParOpen != -1
371 {{{#!if ParOpen+=_ParOpen+3
372 }}}
373 }}}
374############################
375 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
376 }}}
377 {{{#!if _ParOpen == -1
378 {{{#!if Match=true
379 }}}
380 }}}{{{#!if _ParOpen != -1
381 {{{#!if ParOpen+=_ParOpen+3
382 }}}
383 }}}
384 }}}
385 {{{#!if Match
386 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
387 }}}
388 }}}
389}}}}}}
390
391output: {{{#!html @input@}}}
r2624
392== ㅁㄴㅇㄹ ==
393[include(a)]''''''[include(a)][include(a)]
394[[]][include(a)][include(a)][include(a)]
395
396{{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px"
397||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>||
398
399||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>||
400||<colbgcolor=#000>||
401||<tan>||
402
403||<tablealign=center><tablewidth=100%><bgcolor=#000>||
404
405||<tablealign=center><tablewidth=100%>||}}}
406Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok
407Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok
408\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
409[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
410----
411\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
412[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
413----
414\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
415[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
416----
417\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
418[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
419----
420\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
421[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
422----
423\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
424[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
425----
426\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
427[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
428----
429\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
430[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
431----
432\[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
433[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
434----
435\[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
436[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
437\[include(틀:isuuid, uuid=냥)]
438[include(틀:isuuid, uuid=냥)]
439[include(틀:ㅁ, str=Hello\, World!)]
440toString() 가능
441parseInt() x
442
443== ==
r2584
444{{{#!wiki style="font-weight: 300; font-size: 20px"
445{{{#!if 식 = '11+2'
r2597
446@식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0
r2593
447##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지.
r2594
448}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
r2593
449}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
r2594
450##숫자를 발견할 경우
r2591
451{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
r2595
452##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
r2591
453}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
454##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
r2592
455##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다.
r2597
456{{{#!if s2==false
457##정수 자리를 기입하는 경우
r2595
458{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
r2597
459}}}}}}{{{#!if s2==true
460##소수점 아래 자리를 기입하는 경우
461{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
462}}}{{{#!if k+=1
463##다음 소수점 자리 찾기
r2602
464}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2605
465##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함)
r2597
466{{{#!if s2=true, s3=true, k=1+0
467##switch2 : 켜기
r2607
468}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false)
469##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함)
r2591
470{{{#!if j+=1, s1=false, s2=false, s3=true
r2592
471##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김.
r2597
472}}}{{{#!if s3==true
473##여기까지 과정을 거쳤다면 스위치 off.
474{{{#!if s3=false
475}}}}}}
476}}}{{{#!if i+=1
r2594
477}}}
r2595
478##
r2599
479{{{#!if false
r2600
480##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기.
r2599
481{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
482}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
483{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
484}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
485{{{#!if s2==false
486{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
487}}}}}}{{{#!if s2==true
488{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
489}}}{{{#!if k+=1
r2603
490}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2599
491{{{#!if s2=true, s3=true, k=1+0
r2604
492}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false)
r2599
493{{{#!if j+=1, s1=false, s2=false, s3=true
494}}}{{{#!if s3==true
495{{{#!if s3=false
496}}}}}}
497}}}{{{#!if i+=1
498}}}
499####
500}}}
501##
r2600
502{{{#!if this['v1'] == 1
503this['v1'] == 1}}}
504##
505{{{#!if s3=false
506}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
507}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
508{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
509}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
510{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
511}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
512{{{#!if s2=true, s3=true
513}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
514{{{#!if j+=1, s1=false, s2=false, s3=true
515}}}}}}{{{#!if i+=1
516}}}
517##
r2595
518{{{#!if this['v1'] == 11
519this['v1'] == 11}}}
520##
r2596
521{{{#!if s3=false
522}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
523}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
524{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
525}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
526{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
527}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
528{{{#!if s2=true, s3=true
529}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
530{{{#!if j+=1, s1=false, s2=false, s3=true
531}}}}}}{{{#!if i+=1
532}}}{{{#!if s3=false
533}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
534}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
535{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
536}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
537{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
538}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
539{{{#!if s2=true, s3=true
540}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
541{{{#!if j+=1, s1=false, s2=false, s3=true
542}}}}}}{{{#!if i+=1
543}}}
r2595
544##
r2596
545{{{#!if this['v2'] == 2
546this['v2'] == 2}}}
r2595
547##
548##
549##
550##
r2593
551{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2586
552}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
553}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2584
554}}}
r2586
555## 식 검증이 됐다 치면
r2587
556## dn : true - 수 / false - 연산자
r2586
557{{{#!if this['d0']
5581}}}{{{#!if this['d1']
5591}}}{{{#!if !this['d2']
560+}}}{{{#!if this['d3']
r2585
5612}}}
r2587
562## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산
563## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ..
564{{{#!if i = 1, j = 1, i0 = 0
565}}}
566{{{#!if t = this['d0'] != this['d1'], t
567{{{#!if this['i'+i] = j, j+=1, i+=1
568}}}}}}{{{#!if !t
569{{{#!if j+=1
570}}}}}}{{{#!if t = this['d1'] != this['d2'], t
571{{{#!if this['i'+i] = j, j+=1, i+=1
572}}}}}}{{{#!if !t
573{{{#!if j+=1
574}}}}}}{{{#!if t = this['d1'] != this['d2'], t
575{{{#!if this['i'+i] = j, j+=1, i+=1
576}}}}}}{{{#!if !t
577{{{#!if j+=1
r2585
578}}}}}}
r2608
579## {{{#!if i0 == 0
580## i0 == 0 }}}{{{#!if i1 == 2
581## i1 == 2 }}}{{{#!if i2 == 3
582## i2 == 3 }}}
r2587
583## {{{#!if list = [d0, d1, d2, d3]
584## }}}
r2624
585}}}