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