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