본문으로 건너뛰기

(r1629판 Blame)

r1629
r1616
1[[분류:냥]]
r1629
2
3{{{#!if a = 2,147,483,647
4a = 2,147,483,647[br]}}}{{{#!if a+1 == -2,147,483,648
5a+1 == -2,147,483,648[br]overflow}}}
6
7{{{#!if a="3.1415"
8}}}{{{#!if b=a.valueOf()
9}}}{{{#!if b==3.1415
10될리가없지}}}
11
r1603
12{{{#!wiki style="font-weight: 300; font-size: 20px"
13{{{#!if 식 = '11+2'
r1616
14@식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0
r1612
15##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지.
r1613
16}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
r1612
17}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
r1613
18##숫자를 발견할 경우
r1610
19{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
r1614
20##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
r1610
21}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
22##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
r1611
23##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다.
r1616
24{{{#!if s2==false
25##정수 자리를 기입하는 경우
r1614
26{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
r1616
27}}}}}}{{{#!if s2==true
28##소수점 아래 자리를 기입하는 경우
29{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
30}}}{{{#!if k+=1
31##다음 소수점 자리 찾기
r1621
32}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r1624
33##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함)
r1616
34{{{#!if s2=true, s3=true, k=1+0
35##switch2 : 켜기
r1626
36}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false)
37##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함)
r1610
38{{{#!if j+=1, s1=false, s2=false, s3=true
r1611
39##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김.
r1616
40}}}{{{#!if s3==true
41##여기까지 과정을 거쳤다면 스위치 off.
42{{{#!if s3=false
43}}}}}}
44}}}{{{#!if i+=1
r1613
45}}}
r1614
46##
r1618
47{{{#!if false
r1619
48##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기.
r1618
49{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
50}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
51{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
52}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
53{{{#!if s2==false
54{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
55}}}}}}{{{#!if s2==true
56{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
57}}}{{{#!if k+=1
r1622
58}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r1618
59{{{#!if s2=true, s3=true, k=1+0
r1623
60}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false)
r1618
61{{{#!if j+=1, s1=false, s2=false, s3=true
62}}}{{{#!if s3==true
63{{{#!if s3=false
64}}}}}}
65}}}{{{#!if i+=1
66}}}
67####
68}}}
69##
r1619
70{{{#!if this['v1'] == 1
71this['v1'] == 1}}}
72##
73{{{#!if s3=false
74}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
75}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
76{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
77}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
78{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
79}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
80{{{#!if s2=true, s3=true
81}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
82{{{#!if j+=1, s1=false, s2=false, s3=true
83}}}}}}{{{#!if i+=1
84}}}
85##
r1614
86{{{#!if this['v1'] == 11
87this['v1'] == 11}}}
88##
r1615
89{{{#!if s3=false
90}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
91}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
92{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
93}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
94{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
95}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
96{{{#!if s2=true, s3=true
97}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
98{{{#!if j+=1, s1=false, s2=false, s3=true
99}}}}}}{{{#!if i+=1
100}}}{{{#!if s3=false
101}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
102}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
103{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
104}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
105{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
106}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
107{{{#!if s2=true, s3=true
108}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
109{{{#!if j+=1, s1=false, s2=false, s3=true
110}}}}}}{{{#!if i+=1
111}}}
r1614
112##
r1615
113{{{#!if this['v2'] == 2
114this['v2'] == 2}}}
r1614
115##
116##
117##
118##
r1612
119{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r1605
120}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
121}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r1603
122}}}
r1612
123
r1605
124## 식 검증이 됐다 치면
r1606
125## dn : true - 수 / false - 연산자
r1605
126{{{#!if this['d0']
1271}}}{{{#!if this['d1']
1281}}}{{{#!if !this['d2']
129+}}}{{{#!if this['d3']
r1604
1302}}}
r1606
131## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산
132## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ..
133{{{#!if i = 1, j = 1, i0 = 0
134}}}
r1603
135
r1606
136{{{#!if t = this['d0'] != this['d1'], t
137{{{#!if this['i'+i] = j, j+=1, i+=1
138}}}}}}{{{#!if !t
139{{{#!if j+=1
140}}}}}}{{{#!if t = this['d1'] != this['d2'], t
141{{{#!if this['i'+i] = j, j+=1, i+=1
142}}}}}}{{{#!if !t
143{{{#!if j+=1
144}}}}}}{{{#!if t = this['d1'] != this['d2'], t
145{{{#!if this['i'+i] = j, j+=1, i+=1
146}}}}}}{{{#!if !t
147{{{#!if j+=1
r1604
148}}}}}}
r1603
149
r1627
150## {{{#!if i0 == 0
151## i0 == 0 }}}{{{#!if i1 == 2
152## i1 == 2 }}}{{{#!if i2 == 3
153## i2 == 3 }}}
r1606
154
155
156## {{{#!if list = [d0, d1, d2, d3]
157## }}}
158}}}
r1604
159[include(틀:계산기2, r=13)]
r1601
160##생각해보니까 그냥 r을 지정할 수도 있겠구나
161
r1599
162{{{#!if 0.1 + 0.2 != 0.3
1630.1 + 0.2 '''{{{#red !}}}=''' 0.3}}}
164{{{#!if 1 + 0.1 == 1.1
1651 + 0.1 '''==''' 1.1}}}
r1588
166
r1600
167{{{#!if a=1
168}}}{{{#!if a+=1, a == 2
169asdf}}}
170
r1590
171[include(틀:계산기, a=123456789, f=+, b=1)]
172[include(틀:계산기, a=123456789, f=-, b=1)]
173[include(틀:계산기, a=123459, f=*, b=2)]
174[include(틀:계산기, a=123459, f=/, b=2)]
r1588
175
r1591
176[include(틀:계산기2, a=10, f=/, b=3)]
r1592
177[include(틀:계산기2, a=-5, f=/, b=200)]
178[include(틀:계산기2, a=-5, f=*, b=200)]
r1593
179[include(틀:계산기2, a=123459, f=/, b=2)]
r1594
180[include(틀:계산기2, a=12345, f=-, b=67890)]
r1598
181[include(틀:계산기2, a=-1, f=*, b=-5)]
r1602
182[include(틀:계산기2, a=-3, f=/, b=7)]
r1596
183[include(틀:계산기2, a=1.1, f=+, b=0.1)]
r1597
184아직은 소수끼리의 계산은 되지 않는 모양이다. (사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)
r1588
185
r1579
186{{{#!if json={'a':'b', 'c':'d'}
187json={'a':'b', 'c':'d'}[br]
188}}}{{{#!if json['a'] == 'b'
189json['a'] == 'b'[br]
190}}}{{{#!if list = ['a', 'b']
191list = ['a', 'b'][br]
192}}}{{{#!if list[1] == 'b'
193list[1] == 'b'[br]
194}}}
195
r1587
196[[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다.
r1578
197[[냥#]] < 볼드체
198[[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님
r1576
199[[문서:냥]] < 볼드체아님
r1579
200
r1577
201== ㅁㄴㅇㄹ ==
r1567
202
r1573
203[include(a)]''''''[include(a)][include(a)]
r1575
204[[]][include(a)][include(a)][include(a)]
r1572
205
r1571
206'''{{{#!wiki style="width: 80px; height: 80px; color: transparent; background: text linear-gradient(to right bottom, #9a8ef2 15%, transparent 55%), text linear-gradient(to left bottom, #cb83c4 15%, transparent 55%), text linear-gradient(to right top, #fd6e77 15%, transparent 75%),text linear-gradient(to left top, #ed9861 15%, transparent 75%)"
207asdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdf}}}'''
r1567
208
r1565
209[include(틀:각주, 각주명=각주명에 띄어쓰기 넣기, 내용=[include(틀:각주\, 각주명=각주명에 띄어쓰기 넣기\, 내용=\)])]
r1563
210
r1564
211{{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px"
r1558
212||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>||
213
r1562
214||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>||
215||<colbgcolor=#000>||
r1561
216||<tan>||
r1559
217
r1560
218||<tablealign=center><tablewidth=100%><bgcolor=#000>||
219
220||<tablealign=center><tablewidth=100%>||}}}
r1549
221Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok
r1550
222Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok
r1557
223\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
224[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
r1546
225----
r1557
226\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
227[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
r1546
228----
r1557
229\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
230[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
r1546
231----
r1557
232\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
233[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
r1548
234----
r1557
235\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
236[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
r1546
237----
r1557
238\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
239[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
r1546
240----
r1557
241\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
242[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
r1546
243----
r1557
244\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
245[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
r1547
246----
r1539
247\[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
r1533
248[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
r1546
249----
r1539
250\[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
r1535
251[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
r1539
252\[include(틀:isuuid, uuid=냥)]
253[include(틀:isuuid, uuid=냥)]
r1599
254[include(틀:ㅁ, str=Hello\, World!)]
255toString() 가능
256parseInt() x