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