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