From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../global_objects/math/log10e/index.html | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 files/ja/web/javascript/reference/global_objects/math/log10e/index.html (limited to 'files/ja/web/javascript/reference/global_objects/math/log10e/index.html') diff --git a/files/ja/web/javascript/reference/global_objects/math/log10e/index.html b/files/ja/web/javascript/reference/global_objects/math/log10e/index.html new file mode 100644 index 0000000000..724ae98b0c --- /dev/null +++ b/files/ja/web/javascript/reference/global_objects/math/log10e/index.html @@ -0,0 +1,67 @@ +--- +title: Math.LOG10E +slug: Web/JavaScript/Reference/Global_Objects/Math/LOG10E +tags: + - JavaScript + - Math + - Property + - Reference +translation_of: Web/JavaScript/Reference/Global_Objects/Math/LOG10E +--- +
{{JSRef}}
+ +

Math.LOG10E プロパティは 10 を底とした e の対数、約 0.434 を表します。

+ +

Math.LOG10E=log10(e)0.434\mathtt{\mi{Math.LOG10E}} = \log_10(e) \approx 0.434

+ +
{{EmbedInteractiveExample("pages/js/math-log10e.html", "shorter")}}
+ + + +
{{js_property_attributes(0, 0, 0)}}
+ +

解説

+ +

LOG10EMath オブジェクトの静的プロパティなので、 Math オブジェクトを生成してプロパティとして使用するのではなく、常に Math.LOG10E として使用するようにしてください (Math はコンストラクターではありません)。

+ +

+ +

Math.LOG10E の使用

+ +

以下の関数は、10を底とした e の対数を返します。

+ +
function getLog10e() {
+  return Math.LOG10E;
+}
+
+getLog10e(); // 0.4342944819032518
+
+ +

仕様書

+ + + + + + + + + + + + +
仕様書
{{SpecName('ESDraft', '#sec-math.log10e', 'Math.LOG10E')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("javascript.builtins.Math.LOG10E")}}

+ +

関連情報

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