r2597
| 1 | [[분류:냥]] |
|---|
r2644
| 2 | {{{#!if au='222222222' |
|---|
| 3 | }}} |
|---|
| 4 | @au@ |
|---|
r2650
| 5 | {{{#!if au += "000000000000000000" |
|---|
| 6 | +18자}}}{{{#!if au=au.substr(0,18) |
|---|
| 7 | }}}{{{#!if al = au.length |
|---|
r2644
| 8 | }}} |
|---|
| 9 | @au@ |
|---|
| 10 | @al@자 |
|---|
r2641
| 11 | |
|---|
r2662
| 12 | ||<#fff"> <#fff'''{{{#red \"}}}'''>왜 문제가 없지 || |
|---|
r2629
| 13 | ## |
|---|
| 14 | folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동. |
|---|
| 15 | 다만 dark-style은 꼭 "-"만 사용 가능. |
|---|
| 16 | if, syntax는 띄어쓰기 없을 시 에러. |
|---|
| 17 | ## |
|---|
r2624
| 18 | == 문단 == |
|---|
r2636
| 19 | {{{-5 |
|---|
r2643
| 20 | [include(틀:계산기2, a=1.1, f=-, b=-1.2)] |
|---|
r2637
| 21 | [include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)] |
|---|
r2636
| 22 | [include(틀:계산기2, a=., f=-, b=-.)] |
|---|
| 23 | [include(틀:계산기2, a=-, f=+, b=-)] |
|---|
| 24 | [include(틀:계산기2, a=10, f=/, b=3)] |
|---|
r2624
| 25 | [include(틀:계산기2, a=-5, f=/, b=200)] |
|---|
| 26 | [include(틀:계산기2, a=-5, f=*, b=200)] |
|---|
| 27 | [include(틀:계산기2, a=123459, f=/, b=2)] |
|---|
| 28 | [include(틀:계산기2, a=12345, f=-, b=67890)] |
|---|
r2630
| 29 | [include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)] |
|---|
r2632
| 30 | [include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)] |
|---|
r2639
| 31 | [include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)] |
|---|
r2624
| 32 | [include(틀:계산기2, a=-1, f=*, b=-5)] |
|---|
| 33 | [include(틀:계산기2, a=-3, f=/, b=7)] |
|---|
r2633
| 34 | [include(틀:계산기2, a=1.1, f=+, b=0.1)] |
|---|
r2634
| 35 | [include(틀:계산기2, a=1.123, f=+, b=0.877)] |
|---|
| 36 | [include(틀:계산기2, a=1.123, f=+, b=0.878)] |
|---|
r2635
| 37 | [include(틀:계산기2, a=1.333, f=-, b=4.354)] |
|---|
r2638
| 38 | [include(틀:계산기2, a=7.89, f=-, b=12.345)] |
|---|
r2640
| 39 | [include(틀:계산기2, a=1, f=-, b=0.000000000000000001)] |
|---|
| 40 | [include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)]}}} |
|---|
r2633
| 41 | 아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문) |
|---|
r2624
| 42 | |
|---|
| 43 | {{{#!if json={'a':'b', 'c':'d'} |
|---|
| 44 | json={'a':'b', 'c':'d'}[br] |
|---|
| 45 | }}}{{{#!if json['a'] == 'b' |
|---|
| 46 | json['a'] == 'b'[br] |
|---|
| 47 | }}}{{{#!if list = ['a', 'b'] |
|---|
| 48 | list = ['a', 'b'][br] |
|---|
| 49 | }}}{{{#!if list[1] == 'b' |
|---|
| 50 | list[1] == 'b'[br] |
|---|
| 51 | }}} |
|---|
| 52 | |
|---|
| 53 | [[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다. |
|---|
| 54 | [[냥#]] < 볼드체 |
|---|
| 55 | [[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님 |
|---|
| 56 | [[문서:냥]] < 볼드체아님 |
|---|
| 57 | |
|---|
| 58 | [include(틀:계산기, r=13)] |
|---|
| 59 | \[include(틀:계산기, r=13)] |
|---|
| 60 | 생각해보니까 그냥 r을 지정할 수도 있겠구나 |
|---|
| 61 | [include(틀:계산기, a=123456789, f=+, b=1)] |
|---|
| 62 | [include(틀:계산기, a=123456789, f=-, b=1)] |
|---|
| 63 | [include(틀:계산기, a=123459, f=*, b=2)] |
|---|
| 64 | [include(틀:계산기, a=123459, f=/, b=2)] |
|---|
r2646
| 65 | == 그래프구상 == |
|---|
| 66 | {{{#!if i=0, x=0 |
|---|
r2648
| 67 | }}}<math>x^2</math> |
|---|
r2646
| 68 | {{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 69 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 70 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 71 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 72 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 73 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 74 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 75 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 76 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 77 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 78 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 79 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 80 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 81 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 82 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 83 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 84 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 85 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 86 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 87 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 88 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 89 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
r2652
| 90 | }}}{{{#!if true |
|---|
r2669
| 91 | #tk : thickness (px) ; wd : width (px) |
|---|
| 92 | {{{#!if tk=1+0.0, color="#666", wd=10+0.0 |
|---|
| 93 | }}}}}}{{{#!if tk=(+tk)/2, tk=tk.toString(), dis="display: inline-table; background: linear-gradient", rb="to right bottom", rt="to right top", tp="transparent", c1="calc(50% - "+tk+"px)", c2="calc(50% + "+tk+"px)", c3=tp+" "+c1+", "+color+" "+c1+" "+c2+", "+tp+" "+c2, hg="height: ", wd=wd.toString(), wdx="width: "+wd+"px", vag="vertical-align: calc" |
|---|
r2646
| 94 | }}} |
|---|
r2669
| 95 | {{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)" |
|---|
| 96 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);" |
|---|
| 97 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);" |
|---|
| 98 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y4@px; @wdx@; @vag@(@v4@px + @tk@px);" |
|---|
| 99 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y5@px; @wdx@; @vag@(@v5@px + @tk@px);" |
|---|
| 100 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y6@px; @wdx@; @vag@(@v6@px + @tk@px);" |
|---|
| 101 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y7@px; @wdx@; @vag@(@v7@px + @tk@px);" |
|---|
| 102 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y8@px; @wdx@; @vag@(@v8@px + @tk@px);" |
|---|
| 103 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y9@px; @wdx@; @vag@(@v9@px + @tk@px);" |
|---|
| 104 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y10@px; @wdx@; @vag@(@v10@px + @tk@px)" |
|---|
| 105 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y11@px; @wdx@; @vag@(@v11@px + @tk@px)" |
|---|
| 106 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y12@px; @wdx@; @vag@(@v12@px + @tk@px)" |
|---|
| 107 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y13@px; @wdx@; @vag@(@v13@px + @tk@px)" |
|---|
| 108 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); height: @y14@px; @wdx@; @vag@(@v14@px + @tk@px)" |
|---|
r2646
| 109 | }}} |
|---|
r2624
| 110 | |
|---|
r2657
| 111 | == 나무나무마크구상 == |
|---|
r2661
| 112 | * 링크 > 분류/일반 링크/외부 링크(파일 불가) |
|---|
| 113 | \{{{#!html <div style="clear: both"/>}}} |
|---|
| 114 | == clearfix |
|---|
| 115 | 접기includeifsyntax각주일부 불가능 |
|---|
r2658
| 116 | asdf{{{#!html <div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em"><a href="https://theseed.io/w">asdf</div></a></div></div></div>}}}asdf |
|---|
| 117 | <div style="color: #0275d8"> |
|---|
r2657
| 118 | {{{#!if input='냥[[링크|냥]]냥' |
|---|
| 119 | }}} |
|---|
| 120 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8' |
|---|
| 121 | }}} |
|---|
| 122 | {{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') |
|---|
| 123 | }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) |
|---|
| 124 | }}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose |
|---|
| 125 | ## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^ |
|---|
| 126 | {{{#!if divider = linkRaw.indexOf('|') |
|---|
| 127 | }}}{{{#!if divider == -1 |
|---|
| 128 | ##[[링크]] |
|---|
| 129 | {{{#!if href = linkRaw.substring(2, linkRaw.length-2) |
|---|
| 130 | }}} |
|---|
| 131 | }}}{{{#!if divider != -1 |
|---|
| 132 | {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2) |
|---|
| 133 | {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2) |
|---|
| 134 | ##[[|]] > 출력 x |
|---|
| 135 | }}} |
|---|
| 136 | }}} |
|---|
| 137 | {{{#!if (divider == 2) && !break |
|---|
| 138 | {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href |
|---|
| 139 | ##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. |
|---|
| 140 | }}} |
|---|
| 141 | }}} |
|---|
| 142 | {{{#!if (divider+1 == linkRaw.length-2) && !break |
|---|
| 143 | ##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. |
|---|
| 144 | {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href |
|---|
| 145 | @linkPrint@ |
|---|
| 146 | @href@ |
|---|
| 147 | }}} |
|---|
| 148 | }}} |
|---|
| 149 | {{{#!if !break |
|---|
| 150 | {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2) |
|---|
| 151 | }}} |
|---|
| 152 | }}} |
|---|
| 153 | }}} |
|---|
| 154 | {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink |
|---|
| 155 | {{{#!if linkColor = 'none' |
|---|
| 156 | }}} |
|---|
| 157 | }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory |
|---|
| 158 | ## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기 |
|---|
| 159 | }}}{{{#!if !(isCategory || isLink) |
|---|
| 160 | {{{#!if href = 'https://theseed.io/w/'+href |
|---|
| 161 | }}} |
|---|
r2660
| 162 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em"><a href="' + href + '">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) |
|---|
r2657
| 163 | }}} |
|---|
| 164 | }}} |
|---|
| 165 | |
|---|
| 166 | @linkRaw@ |
|---|
| 167 | @href@ |
|---|
| 168 | @linkPrint@ |
|---|
| 169 | |
|---|
| 170 | {{{#!html @input@}}} |
|---|
r2624
| 171 | == ㅁㄴㅇㄹ == |
|---|
| 172 | [include(a)]''''''[include(a)][include(a)] |
|---|
| 173 | [[]][include(a)][include(a)][include(a)] |
|---|
| 174 | |
|---|
| 175 | {{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px" |
|---|
| 176 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>|| |
|---|
| 177 | |
|---|
| 178 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>|| |
|---|
| 179 | ||<colbgcolor=#000>|| |
|---|
| 180 | ||<tan>|| |
|---|
| 181 | |
|---|
| 182 | ||<tablealign=center><tablewidth=100%><bgcolor=#000>|| |
|---|
| 183 | |
|---|
| 184 | ||<tablealign=center><tablewidth=100%>||}}} |
|---|
| 185 | Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok |
|---|
| 186 | Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok |
|---|
| 187 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 188 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 189 | ---- |
|---|
| 190 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 191 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 192 | ---- |
|---|
| 193 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 194 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 195 | ---- |
|---|
| 196 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 197 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 198 | ---- |
|---|
| 199 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 200 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 201 | ---- |
|---|
| 202 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 203 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 204 | ---- |
|---|
| 205 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 206 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 207 | ---- |
|---|
| 208 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 209 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 210 | ---- |
|---|
| 211 | \[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 212 | [include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 213 | ---- |
|---|
| 214 | \[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 215 | [include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 216 | \[include(틀:isuuid, uuid=냥)] |
|---|
| 217 | [include(틀:isuuid, uuid=냥)] |
|---|
| 218 | [include(틀:ㅁ, str=Hello\, World!)] |
|---|
| 219 | toString() 가능 |
|---|
| 220 | parseInt() x |
|---|
| 221 | |
|---|
| 222 | == == |
|---|
r2584
| 223 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
|---|
| 224 | {{{#!if 식 = '11+2' |
|---|
r2597
| 225 | @식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0 |
|---|
r2593
| 226 | ##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지. |
|---|
r2594
| 227 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
r2593
| 228 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
r2594
| 229 | ##숫자를 발견할 경우 |
|---|
r2591
| 230 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
r2595
| 231 | ##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데 |
|---|
r2591
| 232 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 233 | ##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우) |
|---|
r2592
| 234 | ##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다. |
|---|
r2597
| 235 | {{{#!if s2==false |
|---|
| 236 | ##정수 자리를 기입하는 경우 |
|---|
r2595
| 237 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
r2597
| 238 | }}}}}}{{{#!if s2==true |
|---|
| 239 | ##소수점 아래 자리를 기입하는 경우 |
|---|
| 240 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 241 | }}}{{{#!if k+=1 |
|---|
| 242 | ##다음 소수점 자리 찾기 |
|---|
r2602
| 243 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r2605
| 244 | ##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함) |
|---|
r2597
| 245 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
| 246 | ##switch2 : 켜기 |
|---|
r2607
| 247 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false) |
|---|
| 248 | ##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함) |
|---|
r2591
| 249 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
r2592
| 250 | ##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김. |
|---|
r2597
| 251 | }}}{{{#!if s3==true |
|---|
| 252 | ##여기까지 과정을 거쳤다면 스위치 off. |
|---|
| 253 | {{{#!if s3=false |
|---|
| 254 | }}}}}} |
|---|
| 255 | }}}{{{#!if i+=1 |
|---|
r2594
| 256 | }}} |
|---|
r2595
| 257 | ## |
|---|
r2599
| 258 | {{{#!if false |
|---|
r2600
| 259 | ##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기. |
|---|
r2599
| 260 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 261 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 262 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 263 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 264 | {{{#!if s2==false |
|---|
| 265 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 266 | }}}}}}{{{#!if s2==true |
|---|
| 267 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 268 | }}}{{{#!if k+=1 |
|---|
r2603
| 269 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r2599
| 270 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
r2604
| 271 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false) |
|---|
r2599
| 272 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 273 | }}}{{{#!if s3==true |
|---|
| 274 | {{{#!if s3=false |
|---|
| 275 | }}}}}} |
|---|
| 276 | }}}{{{#!if i+=1 |
|---|
| 277 | }}} |
|---|
| 278 | #### |
|---|
| 279 | }}} |
|---|
| 280 | ## |
|---|
r2600
| 281 | {{{#!if this['v1'] == 1 |
|---|
| 282 | this['v1'] == 1}}} |
|---|
| 283 | ## |
|---|
| 284 | {{{#!if s3=false |
|---|
| 285 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 286 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 287 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 288 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 289 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 290 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 291 | {{{#!if s2=true, s3=true |
|---|
| 292 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 293 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 294 | }}}}}}{{{#!if i+=1 |
|---|
| 295 | }}} |
|---|
| 296 | ## |
|---|
r2595
| 297 | {{{#!if this['v1'] == 11 |
|---|
| 298 | this['v1'] == 11}}} |
|---|
| 299 | ## |
|---|
r2596
| 300 | {{{#!if s3=false |
|---|
| 301 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 302 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 303 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 304 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 305 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 306 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 307 | {{{#!if s2=true, s3=true |
|---|
| 308 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 309 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 310 | }}}}}}{{{#!if i+=1 |
|---|
| 311 | }}}{{{#!if s3=false |
|---|
| 312 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 313 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 314 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 315 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 316 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 317 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 318 | {{{#!if s2=true, s3=true |
|---|
| 319 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 320 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 321 | }}}}}}{{{#!if i+=1 |
|---|
| 322 | }}} |
|---|
r2595
| 323 | ## |
|---|
r2596
| 324 | {{{#!if this['v2'] == 2 |
|---|
| 325 | this['v2'] == 2}}} |
|---|
r2595
| 326 | ## |
|---|
| 327 | ## |
|---|
| 328 | ## |
|---|
| 329 | ## |
|---|
r2593
| 330 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r2586
| 331 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
| 332 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r2584
| 333 | }}} |
|---|
r2586
| 334 | ## 식 검증이 됐다 치면 |
|---|
r2587
| 335 | ## dn : true - 수 / false - 연산자 |
|---|
r2586
| 336 | {{{#!if this['d0'] |
|---|
| 337 | 1}}}{{{#!if this['d1'] |
|---|
| 338 | 1}}}{{{#!if !this['d2'] |
|---|
| 339 | +}}}{{{#!if this['d3'] |
|---|
r2585
| 340 | 2}}} |
|---|
r2587
| 341 | ## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산 |
|---|
| 342 | ## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ.. |
|---|
| 343 | {{{#!if i = 1, j = 1, i0 = 0 |
|---|
| 344 | }}} |
|---|
| 345 | {{{#!if t = this['d0'] != this['d1'], t |
|---|
| 346 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 347 | }}}}}}{{{#!if !t |
|---|
| 348 | {{{#!if j+=1 |
|---|
| 349 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 350 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 351 | }}}}}}{{{#!if !t |
|---|
| 352 | {{{#!if j+=1 |
|---|
| 353 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 354 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 355 | }}}}}}{{{#!if !t |
|---|
| 356 | {{{#!if j+=1 |
|---|
r2585
| 357 | }}}}}} |
|---|
r2608
| 358 | ## {{{#!if i0 == 0 |
|---|
| 359 | ## i0 == 0 }}}{{{#!if i1 == 2 |
|---|
| 360 | ## i1 == 2 }}}{{{#!if i2 == 3 |
|---|
| 361 | ## i2 == 3 }}} |
|---|
r2587
| 362 | ## {{{#!if list = [d0, d1, d2, d3] |
|---|
| 363 | ## }}} |
|---|
r2624
| 364 | }}} |
|---|