From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- .../reference/global_objects/math/ln10/index.html | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 files/uk/web/javascript/reference/global_objects/math/ln10/index.html (limited to 'files/uk/web/javascript/reference/global_objects/math/ln10/index.html') diff --git a/files/uk/web/javascript/reference/global_objects/math/ln10/index.html b/files/uk/web/javascript/reference/global_objects/math/ln10/index.html new file mode 100644 index 0000000000..82c50b1911 --- /dev/null +++ b/files/uk/web/javascript/reference/global_objects/math/ln10/index.html @@ -0,0 +1,66 @@ +--- +title: Math.LN10 +slug: Web/JavaScript/Reference/Global_Objects/Math/LN10 +tags: + - JavaScript + - Math + - Властивість + - Довідка + - Поле +translation_of: Web/JavaScript/Reference/Global_Objects/Math/LN10 +--- +
{{JSRef}}
+ +

Поле Math.LN10 відображає значення натурального логарифму 10, що наближено дорівнює 2.302:

+ +

Math.LN10=ln(10)2.302\mathtt{\mi{Math.LN10}} = \ln(10) \approx 2.302

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

Опис

+ +

У зв'язку із тим, що LN10 - це статичне поле Math, слід завжди використовувати його через Math.LN10, замість викликання його як поля створених вами об'єктів Math (Math не являється конструктором).

+ +

Examples

+ +

Використання Math.LN10

+ +

Наступна функція повертає натуральний логарифм 10:

+ +
function getNatLog10() {
+  return Math.LN10;
+}
+
+getNatLog10(); // 2.302585092994046
+
+ +

Специфікації

+ + + + + + + + + + +
Специфікація
{{SpecName('ESDraft', '#sec-math.ln10', 'Math.LN10')}}
+ +

Підтримка у браузерах

+ + + +

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

+ +

Дивіться також

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