From 9a2e241a74e56a2f754a39b82bd0bf9016a494f4 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 30 Aug 2021 23:57:29 +0900 Subject: Global_Objects/Infinity を更新 (#2187) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Markdown化 - 2021/07/21 時点の英語版に同期 --- .../reference/global_objects/infinity/index.html | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100644 files/ja/web/javascript/reference/global_objects/infinity/index.html (limited to 'files/ja/web/javascript/reference/global_objects/infinity/index.html') diff --git a/files/ja/web/javascript/reference/global_objects/infinity/index.html b/files/ja/web/javascript/reference/global_objects/infinity/index.html deleted file mode 100644 index bbd61bc49e..0000000000 --- a/files/ja/web/javascript/reference/global_objects/infinity/index.html +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: Infinity -slug: Web/JavaScript/Reference/Global_Objects/Infinity -tags: - - JavaScript - - Property - - Reference - - プロパティ -translation_of: Web/JavaScript/Reference/Global_Objects/Infinity ---- -
{{jsSidebar("Objects")}}
- -

グローバルプロパティ Infinity は無限大を表す数値です。

- -

{{js_property_attributes(0,0,0)}}

- -
{{EmbedInteractiveExample("pages/js/globalprops-infinity.html")}}
- - - -

解説

- -

Infinityグローバルオブジェクトのプロパティです。言い換えればグローバルスコープ内の変数です。

- -

Infinity の初期値は {{jsxref("Number.POSITIVE_INFINITY")}} です。Infinity という値 (正の無限大) は他のあらゆる数より大きい数です。

- -

この値は数学的に無限大のように振る舞います。詳しくは {{jsxref("Number.POSITIVE_INFINITY")}} を参照してください。

- -

ECMAScript 5 の仕様では、Infinity は読み取り専用です (JavaScript 1.8.5 / Firefox 4 にて実装)。

- -

- -

Infinity を使う

- -
console.log(Infinity          ); /* Infinity */
-console.log(Infinity + 1      ); /* Infinity */
-console.log(Math.pow(10, 1000)); /* Infinity */
-console.log(Math.log(0)       ); /* -Infinity */
-console.log(1 / Infinity      ); /* 0 */
-console.log(1 / 0             ); /* Infinity */
-
- -

仕様

- - - - - - - - - - - - -
仕様書
{{SpecName('ESDraft', '#sec-value-properties-of-the-global-object-infinity', 'Infinity')}}
- -

ブラウザーの互換性

- -

{{Compat("javascript.builtins.parseInt")}}

- -

関連情報

- - -- cgit v1.2.3-54-g00ecf