본문으로 건너뛰기

(r1614판 Blame)

r1614
r1603
1{{{#!wiki style="font-weight: 300; font-size: 20px"
2{{{#!if 식 = '11+2'
r1612
3@식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0
4##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지.
r1613
5}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
r1612
6}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
r1613
7##숫자를 발견할 경우
r1610
8{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
r1614
9##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
r1610
10}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
11##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
r1611
12##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다.
r1614
13{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
r1610
14}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
15##숫자를 계속 발견할 경우 (여기서는 소수점일 경우)
16{{{#!if s2=true, s3=true
17}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
18##숫자가 더 이상 나오지 않을 경우
19{{{#!if j+=1, s1=false, s2=false, s3=true
r1611
20##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김.
r1613
21}}}}}}{{{#!if i+=1
22}}}
r1614
23##
24{{{#!if this['v1'] == 1
25this['v1'] == 1}}}
26##
27{{{#!if s3=false
28}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
29}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
30##숫자를 발견할 경우
31{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
32##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
33}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
34{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
35}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
36{{{#!if s2=true, s3=true
37}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
38{{{#!if j+=1, s1=false, s2=false, s3=true
39}}}}}}{{{#!if i+=1
40}}}
41##
42{{{#!if this['v1'] == 11
43this['v1'] == 11}}}
44##
45##
46##
47##
48##
49##
r1612
50{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r1605
51}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
52}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r1603
53}}}
r1612
54
r1605
55## 식 검증이 됐다 치면
r1606
56## dn : true - 수 / false - 연산자
r1605
57{{{#!if this['d0']
581}}}{{{#!if this['d1']
591}}}{{{#!if !this['d2']
60+}}}{{{#!if this['d3']
r1604
612}}}
r1606
62## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산
63## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ..
64{{{#!if i = 1, j = 1, i0 = 0
65}}}
r1603
66
r1606
67{{{#!if t = this['d0'] != this['d1'], t
68{{{#!if this['i'+i] = j, j+=1, i+=1
69}}}}}}{{{#!if !t
70{{{#!if j+=1
71}}}}}}{{{#!if t = this['d1'] != this['d2'], t
72{{{#!if this['i'+i] = j, j+=1, i+=1
73}}}}}}{{{#!if !t
74{{{#!if j+=1
75}}}}}}{{{#!if t = this['d1'] != this['d2'], t
76{{{#!if this['i'+i] = j, j+=1, i+=1
77}}}}}}{{{#!if !t
78{{{#!if j+=1
r1604
79}}}}}}
r1603
80
r1606
81{{{#!if i0 == 0
r1607
82i0 == 0 }}}{{{#!if i1 == 2
83i1 == 2 }}}{{{#!if i2 == 3
84i2 == 3 }}}
r1606
85
86
87## {{{#!if list = [d0, d1, d2, d3]
88## }}}
89}}}
r1604
90[include(틀:계산기2, r=13)]
r1601
91##생각해보니까 그냥 r을 지정할 수도 있겠구나
92
r1599
93{{{#!if 0.1 + 0.2 != 0.3
940.1 + 0.2 '''{{{#red !}}}=''' 0.3}}}
95{{{#!if 1 + 0.1 == 1.1
961 + 0.1 '''==''' 1.1}}}
r1588
97
r1600
98{{{#!if a=1
99}}}{{{#!if a+=1, a == 2
100asdf}}}
101
r1590
102[include(틀:계산기, a=123456789, f=+, b=1)]
103[include(틀:계산기, a=123456789, f=-, b=1)]
104[include(틀:계산기, a=123459, f=*, b=2)]
105[include(틀:계산기, a=123459, f=/, b=2)]
r1588
106
r1591
107[include(틀:계산기2, a=10, f=/, b=3)]
r1592
108[include(틀:계산기2, a=-5, f=/, b=200)]
109[include(틀:계산기2, a=-5, f=*, b=200)]
r1593
110[include(틀:계산기2, a=123459, f=/, b=2)]
r1594
111[include(틀:계산기2, a=12345, f=-, b=67890)]
r1598
112[include(틀:계산기2, a=-1, f=*, b=-5)]
r1602
113[include(틀:계산기2, a=-3, f=/, b=7)]
r1596
114[include(틀:계산기2, a=1.1, f=+, b=0.1)]
r1597
115아직은 소수끼리의 계산은 되지 않는 모양이다. (사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)
r1588
116
r1579
117{{{#!if json={'a':'b', 'c':'d'}
118json={'a':'b', 'c':'d'}[br]
119}}}{{{#!if json['a'] == 'b'
120json['a'] == 'b'[br]
121}}}{{{#!if list = ['a', 'b']
122list = ['a', 'b'][br]
123}}}{{{#!if list[1] == 'b'
124list[1] == 'b'[br]
125}}}
126
r1587
127[[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다.
r1578
128[[냥#]] < 볼드체
129[[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님
r1576
130[[문서:냥]] < 볼드체아님
r1579
131
r1577
132== ㅁㄴㅇㄹ ==
r1567
133
r1573
134[include(a)]''''''[include(a)][include(a)]
r1575
135[[]][include(a)][include(a)][include(a)]
r1572
136
r1571
137'''{{{#!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%)"
138asdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdf}}}'''
r1567
139
r1565
140[include(틀:각주, 각주명=각주명에 띄어쓰기 넣기, 내용=[include(틀:각주\, 각주명=각주명에 띄어쓰기 넣기\, 내용=\)])]
r1563
141
r1564
142{{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px"
r1558
143||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>||
144
r1562
145||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>||
146||<colbgcolor=#000>||
r1561
147||<tan>||
r1559
148
r1560
149||<tablealign=center><tablewidth=100%><bgcolor=#000>||
150
151||<tablealign=center><tablewidth=100%>||}}}
r1549
152Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok
r1550
153Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok
r1557
154\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
155[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
r1546
156----
r1557
157\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
158[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
r1546
159----
r1557
160\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
161[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
r1546
162----
r1557
163\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
164[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
r1548
165----
r1557
166\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
167[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
r1546
168----
r1557
169\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
170[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
r1546
171----
r1557
172\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
173[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
r1546
174----
r1557
175\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
176[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
r1547
177----
r1539
178\[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
r1533
179[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
r1546
180----
r1539
181\[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
r1535
182[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
r1539
183\[include(틀:isuuid, uuid=냥)]
184[include(틀:isuuid, uuid=냥)]
r1599
185[include(틀:ㅁ, str=Hello\, World!)]
186toString() 가능
187parseInt() x