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