A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/JavaScript/Reference/Operators/Division below:

除算 (/) - JavaScript | MDN

除算 (/)

Baseline Widely available

除算演算子 (/) は、左のオペランドを被除数とし、右のオペランドを除数としたオペランド同士の除算結果を生成します。

試してみましょう
console.log(12 / 2);
// Expected output: 6

console.log(3 / 2);
// Expected output: 1.5

console.log(6 / "3");
// Expected output: 2

console.log(2 / 0);
// Expected output: Infinity
構文 例 基本的な除算
1 / 2; // 0.5

Math.floor(3 / 2); // 1

1.0 / 2.0; // 0.5
ゼロ除算
2.0 / 0; // Infinity

2.0 / 0.0; // Infinity。 0.0 === 0 であるため

2.0 / -0.0; // -Infinity
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4