From e983b2b1955dfcf865421251a1fad00a6ccd5196 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:08 +0800 Subject: remove sup tag for zh-CN --- files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html | 2 +- .../zh-cn/web/javascript/reference/global_objects/math/expm1/index.html | 2 +- .../web/javascript/reference/global_objects/math/fround/index.html | 2 +- files/zh-cn/web/javascript/reference/global_objects/math/index.html | 2 +- files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html | 2 +- .../web/javascript/reference/global_objects/math/random/index.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html index 14f5af47c3..9161628dfb 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html @@ -6,7 +6,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/exp
{{JSRef("Global_Objects", "Math")}}

概述

-

Math.exp() 函数返回 exx 表示参数,e欧拉常数(Euler's constant),自然对数的底数。

+

Math.exp() 函数返回 e^xx 表示参数,e欧拉常数(Euler's constant),自然对数的底数。

语法

Math.exp(x)

参数

diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html index 0fd773ece9..1b463f2c22 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html @@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/expm1

概述

-

Math.expm1() 函数返回 Ex - 1, 其中 x 是该函数的参数, E 是自然对数的底数 2.718281828459045.

+

Math.expm1() 函数返回 E^x - 1, 其中 x 是该函数的参数, E 是自然对数的底数 2.718281828459045.

语法

diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html index b4790b6448..630c3b5d1c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html @@ -47,7 +47,7 @@ Math.fround(1.5) === 1.5; // true Math.fround(1.337) === 1.337; // false -

2150 超出32位浮点,所以返回Infinity

+

2^150 超出32位浮点,所以返回Infinity

2 ** 150; // 1.42724769270596e+45
 Math.fround(2 ** 150); // Infinity
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
index ae08c53771..4e67bcef28 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
@@ -80,7 +80,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math
  
{{jsxref("Global_Objects/Math/cosh", "Math.cosh(x)")}}
返回一个数的双曲余弦值。
{{jsxref("Global_Objects/Math/exp", "Math.exp(x)")}}
-
返回欧拉常数的参数次方,Ex,其中 x 为参数,E 是欧拉常数(2.718...,自然对数的底数)。
+
返回欧拉常数的参数次方,E^x,其中 x 为参数,E 是欧拉常数(2.718...,自然对数的底数)。
{{jsxref("Global_Objects/Math/expm1", "Math.expm1(x)")}}
返回 exp(x) - 1 的值。
{{jsxref("Global_Objects/Math/floor", "Math.floor(x)")}}
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html index 7e9b8ba09e..71adb345fe 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow ---
{{JSRef}}
-

Math.pow() 函数返回基数(base)的指数(exponent)次幂,即 baseexponent

+

Math.pow() 函数返回基数(base)的指数(exponent)次幂,即 base^exponent

{{EmbedInteractiveExample("pages/js/math-pow.html")}}

diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html index 6924bb32c5..84c07215f2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html @@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/random

示例

-

请注意, 由于 JavaScript 中的数字是 IEEE 754 浮点数字,具有最近舍入( round-to-nearest-even)的行为, 因此以下函数的范围 (不包括Math.random() 本身) 并不准确。如果选择了非常大的边界 (253 或更高), 在极罕见的情况下会计算通常-排除(usually-excluded)的上界。(注:round-to-nearest-even采用最近舍入的去偶数舍入的方式,对.5的舍入上,采用取偶数的方式)

+

请注意, 由于 JavaScript 中的数字是 IEEE 754 浮点数字,具有最近舍入( round-to-nearest-even)的行为, 因此以下函数的范围 (不包括Math.random() 本身) 并不准确。如果选择了非常大的边界 (2^53 或更高), 在极罕见的情况下会计算通常-排除(usually-excluded)的上界。(注:round-to-nearest-even采用最近舍入的去偶数舍入的方式,对.5的舍入上,采用取偶数的方式)

得到一个大于等于0,小于1之间的随机数

-- cgit v1.2.3-54-g00ecf