aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/javascript/reference/operators/right_shift/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/javascript/reference/operators/right_shift/index.html')
-rw-r--r--files/ja/web/javascript/reference/operators/right_shift/index.html77
1 files changed, 0 insertions, 77 deletions
diff --git a/files/ja/web/javascript/reference/operators/right_shift/index.html b/files/ja/web/javascript/reference/operators/right_shift/index.html
deleted file mode 100644
index fa01116c74..0000000000
--- a/files/ja/web/javascript/reference/operators/right_shift/index.html
+++ /dev/null
@@ -1,77 +0,0 @@
----
-title: 右シフト (>>)
-slug: Web/JavaScript/Reference/Operators/Right_shift
-tags:
- - Bitwise operator
- - JavaScript
- - Language feature
- - Operator
- - Reference
- - 演算子
- - 言語機能
-translation_of: Web/JavaScript/Reference/Operators/Right_shift
----
-<div>{{jsSidebar("Operators")}}</div>
-
-<p><strong>右シフト演算子 (<code>&gt;&gt;</code>)</strong> (ゼロ埋め右シフト) は、1つ目のオペランドを指定されたビット数だけ右にずらします。右にずらしてあふれたビットは廃棄されます。最も左のビットをコピーしながらずれて入ります。最も左のビットが以前の最も左のビットと同じになるため、符号ビット (最も左のビット) は変化しません。よって「符号維持」という名前です。</p>
-
-<div>{{EmbedInteractiveExample("pages/js/expressions-right-shift.html")}}</div>
-
-<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力していただける場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
-
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="syntaxbox notranslate"><code><var>a</var> &gt;&gt; <var>b</var></code>
-</pre>
-
-<h2 id="Description" name="Description">解説</h2>
-
-<p>この演算子は、1つ目のオペランドを指定されたビット数だけ右にずらします。右にずらしてあふれたビットは廃棄されます。最も左のビットをコピーしながらずれて入ります。最も左のビットが以前の最も左のビットと同じになるため、符号ビット (最も左のビット) は変化しません。よって「符号維持」という名前です。</p>
-
-<p>例えば、 <code>9 &gt;&gt;&gt; 2</code> は 2 となります。</p>
-
-<pre class="brush: js notranslate">. 9 (10進数): 00000000000000000000000000001001 (2進数)
- --------------------------------
-9 &gt;&gt;&gt; 2 (10進数): 00000000000000000000000000000010 (2進数) = 2 (10進数)
-</pre>
-
-<p>同様に、 <code>-9 &gt;&gt; 2</code> は符号が保存されるため、 <code>-3</code> になります。</p>
-
-<pre class="brush: js notranslate">. -9 (10進数): 11111111111111111111111111110111 (2進数)
- --------------------------------
--9 &gt;&gt; 2 (10進数): 11111111111111111111111111111101 (2進数) = -3 (10進数)
-</pre>
-
-<h2 id="Examples" name="Examples">例</h2>
-
-<h3 id="Using_right_shift" name="Using_right_shift">右シフトの使用</h3>
-
-<pre class="brush: js notranslate"> 9 &gt;&gt; 2; // 2
--9 &gt;&gt; 2; // -3
-</pre>
-
-<h2 id="Specifications" name="Specifications">仕様書</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-bitwise-shift-operators', 'Bitwise Shift Operators')}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-<p>{{Compat("javascript.operators.right_shift")}}</p>
-
-<h2 id="See_also" name="See_also">関連情報</h2>
-
-<ul>
- <li><a href="/ja/docs/Web/JavaScript/Guide/Expressions_and_Operators#Bitwise">JavaScript ガイドのビット毎演算子</a></li>
- <li><a href="/ja/docs/Web/JavaScript/Reference/Operators/Right_shift_assignment">右シフト代入演算子</a></li>
-</ul>